File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
image/service/phpldapadmin Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -182,6 +182,9 @@ HTTPS :
182
182
- **PHPLDAPADMIN_HTTPS_KEY_FILENAME**: Apache ssl certificate private key filename. Defaults to `phpldapadmin.key`
183
183
- **PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME**: Apache ssl CA certificate filename. Defaults to `ca.crt`
184
184
185
+ Reverse proxy HTTPS :
186
+ - **PHPLDAPADMIN_TRUST_PROXY_SSL**: Set to `true` to trust X-Forwarded-Proto header
187
+
185
188
Ldap client TLS/LDAPS :
186
189
187
190
- **PHPLDAPADMIN_LDAP_CLIENT_TLS**: Enable ldap client tls config, ldap serveur certificate check and set client certificate. Defaults to `true`
Original file line number Diff line number Diff line change 31
31
ln -sf ${CONTAINER_SERVICE_DIR} /phpldapadmin/assets/apache2/http.conf /etc/apache2/sites-available/phpldapadmin.conf
32
32
fi
33
33
34
+ #
35
+ # Reverse proxy config
36
+ #
37
+ if [ " ${PHPLDAPADMIN_TRUST_PROXY_SSL,,} " == " true" ]; then
38
+ echo ' SetEnvIf X-Forwarded-Proto "^https$" HTTPS=on' > /etc/apache2/mods-enabled/remoteip_ssl.conf
39
+ fi
40
+
34
41
a2ensite phpldapadmin | log-helper debug
35
42
36
43
#
You can’t perform that action at this time.
0 commit comments