leenooks / phpLDAPadmin

phpLDAPadmin - Web based LDAP administration tool
www.phpldapadmin.org
GNU General Public License v2.0
548 stars 170 forks source link

Allow manual disabling of "This web connection is unencrypted" message #270

Open Amphaal opened 5 months ago

Amphaal commented 5 months ago

My instance of phpLDAPadmin being behind a Cloudflare proxy, connection is indeed secure.

Capture d’écran 2024-06-05 à 14 10 27

Could we juste disable this message by passing an env variable ?

Randy-Blancett commented 1 month ago

Was digging around on a similar problem and found the following in the NginX config

set $my_https "off";
    if ($http_x_forwarded_proto = "https") {
        set $my_https "on";
    }

Which should mean that if you set http_x_forwarded_proto to https in your cloudflair proxy it should disable this message.

Not sure if you can do this but thought I would document it in case it helps some one.