]> Untitled Git - lemmy.git/blobdiff - docs/src/administration_configuration.md
Change domain of yerbamate.dev to yerbamate.ml
[lemmy.git] / docs / src / administration_configuration.md
index 55f93f05b8937b9541c20b3bea98cd21c806db45..3958a004d8e8bf72a6617a43a91a727044a5a606 100644 (file)
@@ -1,17 +1,19 @@
 # Configuration
 
-The configuration is based on the file [defaults.hjson](server/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 [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.
 
-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`.
+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:
+
+- 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.
 
 If the Docker container is not used, manually create the database specified above by running the following commands:
 
 ```bash
-# Start at the root of the Lemmy repository
-
 cd server
 ./db-init.sh
 ```