Skip to content
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

Merged
merged 2 commits into from
Jul 5, 2013

Conversation

delijati
Copy link
Contributor

@delijati delijati commented Jul 5, 2013

Set wsgi.url_scheme with HTTP_X_SCHEME header

posativ added a commit that referenced this pull request Jul 5, 2013
Set wsgi.url_scheme with HTTP_X_SCHEME header
@posativ posativ merged commit 9f4f817 into posativ:master Jul 5, 2013
@posativ
Copy link
Owner

posativ commented Jul 5, 2013

Thanks, but can you tell what kind of bugs this fixes?

@lugensa
Copy link

lugensa commented Jul 5, 2013

im using nginx and https. without that fix the only way to get scheme https added is to set --base_url

@delijati
Copy link
Contributor Author

delijati commented Jul 5, 2013

uh sorry "lugensa" is my working account ...

@posativ
Copy link
Owner

posativ commented Jul 6, 2013

Okay, sounds good (use the --base_url flag). I'll release a new version on PyPi including this fix.

@lkraav
Copy link
Contributor

lkraav commented Aug 1, 2013

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?

@lkraav
Copy link
Contributor

lkraav commented Aug 1, 2013

I think this is solved with a documentation patch. See PR.

@posativ
Copy link
Owner

posativ commented Aug 26, 2013

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants