]> Untitled Git - lemmy.git/blob - docs/src/administration_configuration.md
Merge branch 'master' into federation
[lemmy.git] / docs / src / administration_configuration.md
1 # Configuration
2
3 The configuration is based on the file
4 [defaults.hjson](https://yerbamate.dev/LemmyNet/lemmy/src/branch/master/server/config/defaults.hjson).
5 This file also contains documentation for all the available options. To override the defaults, you
6 can copy the options you want to change into your local `config.hjson` file.
7
8 Additionally, you can override any config files with environment variables. These have the same
9 name as the config options, and are prefixed with `LEMMY_`. For example, you can override the
10 `database.password` with `LEMMY__DATABASE__POOL_SIZE=10`.
11
12 An additional option `LEMMY_DATABASE_URL` is available, which can be used with a PostgreSQL
13 connection string like `postgres://lemmy:password@lemmy_db:5432/lemmy`, passing all connection
14 details at once.
15
16 If the Docker container is not used, manually create the database specified above by running the
17 following commands:
18
19 ```bash
20 cd server
21 ./db-init.sh
22 ```