Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Allow to set client certificates via env variable
  • Loading branch information
jvanbruegge committed Dec 24, 2019
commit 5a3235650a1dde15c37c2c848d046f1bec93d841
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ HTTPS :
- **PHPLDAPADMIN_HTTPS_CRT_FILENAME**: Apache ssl certificate filename. Defaults to `phpldapadmin.crt`
- **PHPLDAPADMIN_HTTPS_KEY_FILENAME**: Apache ssl certificate private key filename. Defaults to `phpldapadmin.key`
- **PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME**: Apache ssl CA certificate filename. Defaults to `ca.crt`
- **PHPLDAPADMIN_HTTPS_VERIFY_CLIENT**: Apache client certificate configuration. Possible values are `optional`, `require`, `none`. Defaults to `optional`

Reverse proxy HTTPS :
- **PHPLDAPADMIN_TRUST_PROXY_SSL**: Set to `true` to trust X-Forwarded-Proto header
Expand Down
1 change: 1 addition & 0 deletions image/environment/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ PHPLDAPADMIN_HTTPS: true
PHPLDAPADMIN_HTTPS_CRT_FILENAME: phpldapadmin.crt
PHPLDAPADMIN_HTTPS_KEY_FILENAME: phpldapadmin.key
PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME: ca.crt
PHPLDAPADMIN_HTTPS_VERIFY_CLIENT: optional

PHPLDAPADMIN_TRUST_PROXY_SSL: false

Expand Down
1 change: 1 addition & 0 deletions image/service/phpldapadmin/assets/apache2/https.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
SSLCertificateFile ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/apache2/certs/${PHPLDAPADMIN_HTTPS_CRT_FILENAME}
SSLCertificateKeyFile ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/apache2/certs/${PHPLDAPADMIN_HTTPS_KEY_FILENAME}
#SSLCACertificateFile ${CONTAINER_SERVICE_DIR}/phpldapadmin/assets/apache2/certs/${PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME}
SSLVerifyClient ${PHPLDAPADMIN_HTTPS_VERIFY_CLIENT}

Include /etc/apache2/conf-available/gzip.conf
Include /etc/apache2/conf-available/cache.conf
Expand Down