This probably shouldn't be active all the time, but it would be something to activate when running behind a reverse proxy, in order to set the request protocol / host / port correctly based on X-Forwarded-Proto and Host so that URL generation happens correctly.
We could have a flag on SiteConfiguration that activates this, along with code in the site that calls setHost based on the incoming request headers.
This probably shouldn't be active all the time, but it would be something to activate when running behind a reverse proxy, in order to set the request protocol / host / port correctly based on X-Forwarded-Proto and Host so that URL generation happens correctly.
We could have a flag on
SiteConfigurationthat activates this, along with code in the site that callssetHostbased on the incoming request headers.