osixia / docker-phpLDAPadmin

phpLDAPadmin container image 🐳🌴
MIT License
844 stars 197 forks source link

Respect X-Forwarded-Proto header #19

Closed IlyaSemenov closed 8 years ago

IlyaSemenov commented 8 years ago

Consider a typical setup on docker farm:

Remote user > (HTTPS) > nginx frontend at docker host > (HTTP) > docker container.

This is a perfectly secure setup (unencrypted traffic never hits the physical network), however phpLDAPAdmin will generate a warning: "This web connection is unencrypted."

phpLDAPAdmin docker image must respect X-Forwarded-Proto and disable the warning if the header is set to "https".

osixia commented 8 years ago

Thanks i didn't known that :) can you provide the apache configuration and i make a fix ? (or make a pull request ?)