-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set wsgi.url_scheme with HTTP_X_SCHEME header #12
Conversation
Set wsgi.url_scheme with HTTP_X_SCHEME header
Thanks, but can you tell what kind of bugs this fixes? |
im using nginx and https. without that fix the only way to get scheme https added is to set --base_url |
uh sorry "lugensa" is my working account ... |
Okay, sounds good (use the --base_url flag). I'll release a new version on PyPi including this fix. |
Guys, this commit 9f4f817 is broken. I'm running weave-minimal behind apache SSL proxypass, with --base-url="https://server/sync/". I think the protocol cannot be decided only using the header specified in the commit. In my case, base-url should definitely be added as a factor. Right now I'm working around it by just adding "https" there as a default. Thoughts? |
I think this is solved with a documentation patch. See PR. |
Hi @delijati, I replaced X-Scheme with X-Forwarded-Proto because the latter is the de-facto standard identifier (via https://en.wikipedia.org/wiki/List_of_HTTP_header_fields). |
Set wsgi.url_scheme with HTTP_X_SCHEME header