6 Feb
2023
6 Feb
'23
12:36 a.m.
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;
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan