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

Pass X-Forwarded-Proto in addition to X-Forwarded-Host in reverse-proxy mode #56

Closed
tbroyer opened this issue Mar 23, 2016 · 1 comment

Comments

@tbroyer
Copy link

tbroyer commented Mar 23, 2016

I have an application whose behavior changes (generates https:// vs. http:// URLs, set Secure flag on cookies) depending on whether it runs behind a TLS-terminating reverse proxy (production, HAProxy) or not (local dev, plain HTTP). This is done switching on a X-Forwarded-Proto request header (if set to https, we're behind the reverse proxy, otherwise –not set, or other value– we're not).

I'd like to easily test it locally using HTTPS, from time to time, to verify the expected in-production logic.

Looking around for a simple reverse-proxy with TLS support for development, I found devd, but it doesn't add X-Forwarded-Proto.

@cortesi
Copy link
Owner

cortesi commented Sep 24, 2016

I'd merge a patch that implements this, or, alternatively rfc7239.

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

No branches or pull requests

2 participants