From e5d3e3a9c3e3257aaa5b1febd2893aa169c6c818 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 13 Jul 2020 11:33:48 -0400 Subject: Adding a configurable config location through an env var. (#960) * Adding a configurable config location through an env var. - Its `LEMMY_CONFIG_LOCATION` - Fixes #764 * Using a static for CONFIG_FILE again. * Make clippy happy --- docs/src/administration_configuration.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'docs') diff --git a/docs/src/administration_configuration.md b/docs/src/administration_configuration.md index 56448de4..cc4c5689 100644 --- a/docs/src/administration_configuration.md +++ b/docs/src/administration_configuration.md @@ -5,6 +5,8 @@ The configuration is based on the file This file also contains documentation for all the available options. To override the defaults, you can copy the options you want to change into your local `config.hjson` file. +To use a different `config.hjson` location than the current directory, set the environment variable `LEMMY_CONFIG_LOCATION`. + Additionally, you can override any config files with environment variables. These have the same name as the config options, and are prefixed with `LEMMY_`. For example, you can override the `database.password` with `LEMMY_DATABASE__POOL_SIZE=10`. -- cgit v1.2.3