From de15ebba6a7a48b519cd468d19a513ee7bde40c3 Mon Sep 17 00:00:00 2001 From: nitnelave Date: Wed, 20 Oct 2021 09:10:39 +0200 Subject: [PATCH] readme: Add a note about env variable prefix --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2742192..2bd5788 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,8 @@ file (unless you move them in the config). Configure the server by copying the `lldap_config.docker_template.toml` to `/data/lldap_config.toml` and updating the configuration values (especially the `jwt_secret` and `ldap_user_pass`, unless you override them with env variables). +Environment variables should be prefixed with `LLDAP_` to override the +configuration. Example for docker compose: @@ -61,9 +63,9 @@ services: volumes: - "lldap_data:/data" environment: - - JWT_SECRET=REPLACE_WITH_RANDOM - - LDAP_USER_PASS=REPLACE_WITH_PASSWORD - - LDAP_BASE_DN=dc=example,dc=com + - LLDAP_JWT_SECRET=REPLACE_WITH_RANDOM + - LLDAP_LDAP_USER_PASS=REPLACE_WITH_PASSWORD + - LLDAP_LDAP_BASE_DN=dc=example,dc=com ``` Then the service will listen on two ports, one for LDAP and one for the web