-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
secure_proxy_ssl_header with gunicorn #1762
Comments
currently i'm using secure = 'https' in (request.scheme, request.headers.get('X-Forwarded-Proto'))
ws_scheme = 'wss' if secure else 'ws'
ws_url = f'{ws_scheme}:https://{request.host}/ws' In addition to fixing |
do you want to work on this? |
Can do, just a key word argument to Application should work. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Long story short
I think it's not possible to set
secure_proxy_ssl_header
when deploying with gunicorn.Expected behaviour
gunicorn config or environment variable should allow me to set
secure_proxy_ssl_header='X-Forwarded-Proto'
sorequest.scheme
is correct.Actual behaviour
No apparent way to set it.
Steps to reproduce
Can give more detail if required.
Your environment
Heroku, but should be the same with any other.
The text was updated successfully, but these errors were encountered: