6 Feb
2023
6 Feb
'23
6:18 p.m.
[Mark]
On 2/4/23 22:50, Lars Bjørndal wrote:
The verification link I get back when trying to add an account, referes to localhost, e.g.
To confirm this is correct, go to https://localhost:8000/accounts/confirm-email/Mw:1...
Where do I change that?
This message comes from Django allauth and is probably using what it thinks is the host that is doing the add. This is based on your web server configuration which I would need to see to be more specific. I suspect you are proxying requests to https://localhost:8000/ and you are missing a directive to pass the host. For Apache I think you want
ProxyPreserveHost On
and for nginx
proxy_set_header Host $host; proxy_set_header X-Forwarded-For $remote_addr;
Thank you very much. I'm using Apache, and ProxyPreserveHost On
works perfectly.
Lars