Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confirmation emails have an URL with the private address of the container #211

Closed
carlosm3011 opened this issue Jan 4, 2018 · 5 comments

Comments

@carlosm3011
Copy link

Instead of a link to http://my.mailmansite.com the link points to https://172.19.199.3:8000 ....

@maxking
Copy link
Owner

maxking commented Jan 4, 2018

It usually is because of Nginx rewriting the URLs when forwarding the requests to uwsgi. I have seen this before but can't remember the answer of the top of my head.

Maybe try this:

		  proxy_set_header Host $host;

This setting is for Nginx, you can use the equivalent setting if you are using another web server.

@carlosm3011
Copy link
Author

carlosm3011 commented Jan 4, 2018 via email

@maxking
Copy link
Owner

maxking commented Jan 4, 2018

It is indeed created by django allauth, however, the HOST part of the url isn't something static and is probably dependent on the request coming in. Ideally, the same django site can be served via multiple domain names(Hosts).

I am sure you can find an open issue somewhere in this project that answers this.

@carlosm3011
Copy link
Author

carlosm3011 commented Jan 4, 2018 via email

@maxking
Copy link
Owner

maxking commented Jan 4, 2018

Awesome!

@maxking maxking closed this as completed Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants