-
Notifications
You must be signed in to change notification settings - Fork 17
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
Adding HTTP_X_FORWARDED_PROTO in haproxy #75
Comments
I'm thinking on adding a new environment variable called Do you think that such an approach would work. Any other suggestion is welcome. |
That would work I guess. I do not have much in-depth knowledge in docker flow proxy to suggest otherwise. |
See the release 1.125 for more info. Please let me know if it worked and fulfils your needs. |
I was trying to setup docker-flow-proxy with SSL and my backend checks for
HTTP_X_FORWARDED_PROTO
header to determine if the connection ishttps
or not and if it is not https it redirects the user to https domain name. However, because the haproxy template doesn't support this out of the box, the script was looping and eventually timed out.Finally, I ended up creating new image with a custom haproxy.tmpl file with the extra content
I want to make a feature request to add the option to add extra headers in the haproxy( may be using a curl call ) so that it is more customizable and users don't have to maintain their own proxy image.
The text was updated successfully, but these errors were encountered: