Closed nterbogt closed 2 years ago
@nterbogt this is already supported on Lando. See relevant codes: https://github.com/lando/lando/blob/master/plugins/lando-recipes/recipes/pantheon/nginx.conf#L65 https://github.com/lando/lando/blob/master/plugins/lando-services/services/nginx/fastcgi_params#L13
And screenshot of a Pantheon site i pulled down JUST FOR YOU to test this out
It's worth pointing out that i think this var is only available if you are routing to your site via a proxy (eg the varnish edge or ssl termination endpoint) so you should not expect to see it if you are accessing nginx directly. The easy way to do this is just use the *.lndo.site
address instead of the localhost
one
As per https://pantheon.io/docs/domains/ Pantheon suggests the use of the following for HTTPS redirection.
The pantheon recipe doesn't support this variable which I assume is configured at an appserver level. Could we please have it added so that I don't have to do this (which is a hack and still prone to error):