bfabiszewski / ulogger-server

μlogger • web viewer for tracks uploaded with μlogger mobile client
GNU General Public License v3.0
537 stars 85 forks source link

Fix protocol detection when behind HTTPS proxy #80

Closed mmerian closed 5 years ago

mmerian commented 5 years ago

Hi !

Thanks for this cool project. I set it up as a docker container running behind an HTTPS nginx proxy.

Since nginx was forwarding HTTP requests, the uUtils::getBaseUrl() did not detect the right protocol.

This pull request fixes that.

Regards,

bfabiszewski commented 5 years ago

Good idea, thanks!