itlr
(ShawnX)
1
I’m running discourse behind nginx, the upstream url is on port 12345, nginx on 80 with https. I followed How To Install Discourse Behind Nginx on Ubuntu 14.04 | DigitalOcean for the setup
After log in, the site redirects me to https://www.site.com:12345, am I missing anything?
itlr
(ShawnX)
2
Was because I added the following lines into nginx.conf per https://meta.discourse.org/t/invalid-redirect-uri-in-google-oauth2-api-call-http-instead-of-https/18105/45
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
1 Like
This topic was automatically closed after 2939 days. New replies are no longer allowed.