From ac819aaf1fe41c82eb528fc868b60062080546a0 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 7 Apr 2021 07:30:59 -0400 Subject: [PATCH] Fix config docs. (#51) * Fix config docs. * Spelling error. --- src/en/administration/configuration.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/en/administration/configuration.md b/src/en/administration/configuration.md index 3958a00..986c0ac 100644 --- a/src/en/administration/configuration.md +++ b/src/en/administration/configuration.md @@ -1,15 +1,10 @@ # Configuration -The configuration is based on the file [defaults.hjson](https://yerbamate.ml/LemmyNet/lemmy/src/branch/main/config/defaults.hjson). 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. +The configuration is based on the file [config.hjson](https://github.com/lemmynet/lemmy/blob/main/config/config.hjson). This file also contains documentation for all the available options. The install instructions tell you how to override the defaults. -The `defaults.hjson` and `config.hjson` files are located at `config/defaults.hjson` and`config/config.hjson`, respectively. To change these default locations, you can set these two environment variables: +The `config.hjson` file is located at `config/config.hjson`. To change the default location, you can set the environment variable `LEMMY_CONFIG_LOCATION`. -- LEMMY_CONFIG_LOCATION # config.hjson -- LEMMY_CONFIG_DEFAULTS_LOCATION # defaults.hjson - -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`. - -An additional option `LEMMY_DATABASE_URL` is available, which can be used with a PostgreSQL connection string like `postgres://lemmy:password@lemmy_db:5432/lemmy`, passing all connection details at once. +An additional environment variable `LEMMY_DATABASE_URL` is available, which can be used with a PostgreSQL connection string like `postgres://lemmy:password@lemmy_db:5432/lemmy`, passing all connection details at once. If the Docker container is not used, manually create the database specified above by running the following commands: