In docker environments running behind a reverse proxy, the HTTPS protocol is not correctly handled, because the container may be running in port 80, but the reverse proxy is sending requests through HTTPS.
Checking the HTTP_X_FORWARDED_PROTO header fixes issues with the proper protocol being used when setting up download URLs, etc.
In docker environments running behind a reverse proxy, the HTTPS protocol is not correctly handled, because the container may be running in port 80, but the reverse proxy is sending requests through HTTPS.
Checking the
HTTP_X_FORWARDED_PROTO
header fixes issues with the proper protocol being used when setting up download URLs, etc.