anyway… we’ve encountered the same issue with Josh and yes, it can be fixed by the proxy config update

so that's what's going wrong. The server does not properly tell PHP it's on https

The PHP end of the stack should not worry about those headers, the server in front of PHP should

Although, I did encounter it a few weeks ago, it is the server's problem, so it is a config issue in there

It shouldn't pass, it should forward, any X header regarding https should be forwarded as if it's https