Closed jp closed 9 years ago
I believe you can set a header (specifically a key in the env) for this. Rack::Request#scheme picks up on:
HTTPS
(== "on")HTTP_X_FORWARDED_SSL
(== "on")HTTP_X_FORWARDED_SCHEME
HTTP_X_FORWARDED_PROTO
rack.url_scheme
That's correct, adding the following made it work :
headers["HTTPS"]='on'
Even better with the following :
env["rack.ssl_verify_none"] = true
Thanks @mcmire
I didn't find a way to change the protocol in the request when the incoming protocol is different than the proxied service. Is there a solution for this ?