kendarorg / PhpNuget

Php nuget manager supporting complex queries on txt files or MySQL
http://www.kendar.org/?p=/dotnet/phpnuget
Other
23 stars 15 forks source link

Added HTTP_X_FORWARDED_PROTO flag for determining SSL urls #65

Closed bkraul closed 5 years ago

bkraul commented 5 years ago

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.