From 310e3738d5d044daef003bd5037e7180cca7ee91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20M=C3=A4der?= <cimnine@users.noreply.github.com> Date: Fri, 12 Mar 2021 18:27:02 +0100 Subject: [PATCH] Mention custom configuration files --- Configuration.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Configuration.md b/Configuration.md index ec1df08..c3d0cb6 100644 --- a/Configuration.md +++ b/Configuration.md @@ -41,4 +41,14 @@ These settings are also relevant: * `MAX_PAGE_SIZE`: Use the recommended default of 1000. * `SUPERUSER_*`: Only define those variables during the initial setup, and drop them once the DB is set up. Don't use the default passwords! * `SKIP_SUPERUSER`: Set to any value after you've created the superuser. -* `REDIS_*`: Use your own persistent redis. Don't use the default passwords! \ No newline at end of file +* `REDIS_*`: Use your own persistent redis. Don't use the default passwords! + +## Custom Configuration Files + +You can create you own configuration files if you need to configure something that can't be configured via the environment variables. +See the `configuration/extra.py` file as an example. +This works for regular configuration as well as for ldap configuration files, with the little (obvious?) difference that ldap configuration files are placed in `configuration/ldap/`. + +The files are read in the order in which they are received from the system, which usually is alphabetical order. +Later files take precedence over previous files. +All custom files take precedence over the default configuration files `configuration.py` and `ldap_config.py`. \ No newline at end of file