Closed jakubgs closed 3 years ago
Maybe an issue with https vs http?
Oh damn, you might be right! Let me try setting X-Forwarded-Proto
.
Hmmm, I added some headers like so:
location / {
proxy_set_header Host $proxy_host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://127.0.0.1:5000/;
}
But I'm still seeing it use http
. Not sure what setting I'm missing.
Oh, I see, it's WWW_SCHEME
setting. I guess the app doesn't respect X-Forwarded-Proto
.
Yep, that was it, the WWW_SCHEME
needs to be used rather than X-Forwarded-Proto
header. Thanks for pointing it out!
I attempted to use the GitHub OAuth configuration by specifying:
But when I tried to use the
Sig in with GitHub
[sic] button:I get redirected to the url:
And I then get redirected to:
And I'm sure my redirect URL configured in github is
http://cabot.example.org/complete/github-org/
down to the trailing slash.Not sure what I'm supposed to do. I do find it strange tho that the URL isn't encoded in the URL arguments.