]> Untitled Git - lemmy.git/blob - docs/src/administration_configuration.md
Add instructions for unning db-init.sh to administration_configuration.md
[lemmy.git] / docs / src / administration_configuration.md
1 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. 
2
3 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 
4 `LEMMY__DATABASE__POOL_SIZE=10`.
5
6 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.
7
8 If the Docker container is not used, manually create the database specified above by running the following commands:
9
10 ```bash
11 # Start at the root of the Lemmy repository
12
13 cd server
14 ./db-init.sh
15 ```