Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to set client certificates via env variable #67

Open
wants to merge 2 commits into
base: stable
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
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
2 changes: 2 additions & 0 deletions image/environment/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ 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_HTTPS_VERIFY_DEPTH: "1"

PHPLDAPADMIN_TRUST_PROXY_SSL: false

Expand Down
2 changes: 2 additions & 0 deletions image/service/phpldapadmin/assets/apache2/https.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
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}
SSLVerifyDepth ${PHPLDAPADMIN_HTTPS_VERIFY_DEPTH}

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