Skip to content

Commit 113652a

Browse files
committed
docs & fix service dir
1 parent f033bd2 commit 113652a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ By default HTTPS is enable, a certificate is created with the container hostname
8282
You can set your custom certificate at run time, by mounting a directory containing those files to **/container/service/phpldapadmin/assets/apache2/certs** and adjust their name with the following environment variables:
8383

8484
docker run --volume /path/to/certifates:/container/service/phpldapadmin/assets/apache2/certs \
85-
--env PHPLDAPADMIN_HTTPS_CRT_FILENAME=my-phpldapadmin.crt \
86-
--env PHPLDAPADMIN_HTTPS_KEY_FILENAME=my-phpldapadmin.key \
85+
--env PHPLDAPADMIN_HTTPS_CRT_FILENAME=my-cert.crt \
86+
--env PHPLDAPADMIN_HTTPS_KEY_FILENAME=my-cert.key \
8787
--env PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME=the-ca.crt \
8888
--detach osixia/phpldapadmin:0.6.7
8989

image/service/ldap-client/startup.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ if [ ! -e "$FIRST_START_DONE" ]; then
1212

1313
if [ "${PHPLDAPADMIN_LDAP_CLIENT_TLS,,}" == "true" ]; then
1414

15-
# check certificat and key or create it
15+
# generate a certificate and key if files don't exists
16+
# https://github.com/osixia/docker-light-baseimage/blob/stable/image/service-available/:cfssl/assets/tool/cfssl-helper
1617
cfssl-helper ${PHPLDAPADMIN_LDAP_CLIENT_CFSSL_PREFIX} "${CONTAINER_SERVICE_DIR}/ldap-client/assets/certs/${PHPLDAPADMIN_LDAP_CLIENT_TLS_CRT_FILENAME}" "${CONTAINER_SERVICE_DIR}/ldap-client/assets/certs/${PHPLDAPADMIN_LDAP_CLIENT_TLS_KEY_FILENAME}" "${CONTAINER_SERVICE_DIR}/ldap-client/assets/certs/${PHPLDAPADMIN_LDAP_CLIENT_TLS_CA_CRT_FILENAME}"
1718

1819
# ldap client config

0 commit comments

Comments
 (0)