Cannot Login to nodebb: "Welcome back guest"
-
Hello @sivy,
I had the same problem.
Using :
- Cloudflare with https rule for forcing https,
- Nginx mainline version has proxy_pass
Solved by changing on Nginx configuration proxy_pass :
proxy_set_header X-Forwarded-Proto $scheme;
To
proxy_set_header X-Forwarded-Proto https;
Don't understand why it suddently worked with this
-
arnaudw's solution worked for me, though for apache the command is
RequestHeader set X-Forwarded-Proto "https"
Thanks so much for the fix - I also don't understand this, but believe it has to do with a recent update to nodebb since my login was working in v1.16.0 and I updated to v1.16.2
-
@arnaudw said in Cannot Login to nodebb: "Welcome back guest":
Solved by changing on Nginx configuration proxy_pass :
proxy_set_header X-Forwarded-Proto $scheme;To
proxy_set_header X-Forwarded-Proto https;Today I changed the nginx config. Now I use a stream with map and a generic server in nginx.conf (see TLS Termination). This implied removing ssl and http2 from the server's listen directive in sites-enabled/my-site.
So, from:
listen 127.0.0.1:445 deferred ssl http2;
To
listen 127.0.0.1:445 deferred;
That's about my guess why https is required for proxy_set_header X-Forwarded-Proto now.
Thank you for your solution. Saved my day.
-
@arnaudw
I installed a new forum on a heroku server and when I connect via myapp.herokuapp.com it works great
But when I connect through my domain it is written to me "welcome back guest" but really stayed disconnected
(I only use a subdomain, at the domain root I use for another site, I use cloudflare I set ssl and force ssl)
I would be happy to help, thanks -