This repository has been archived by the owner on May 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Allow HTTPS request URIs #8
Comments
The protocol field doesn't contain any information about SSL/TLS in newer version of node.js. This code should fix the problem:
|
Just to clarify: The SSL request doesn't end up on node, I have an SSL terminator/proxy in front of Varnish and then Varnish sends it to the backend. But the dereferencing should be the SSL URI, not the non-SSL one. |
OK, even easier. Configure Varnish to send the 'x-forwarded-proto' header, express-utils will do the rest. |
I think we have a problem further up the chain, filed an issue in hitch with some details. |
After the feedback from the hitch maintainers I've added the following to my Varnish setup:
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently trifid assumes that the schema is HTTP when reconstructing the request URI so it cannot be used if it exposed to the outside via HTTPS-URIs. As afaik there is no way to detect the schema of URI from the request headers wether to assume HTTP or HTTPS should be a setting in config.js.
The text was updated successfully, but these errors were encountered: