2020-02-06 11:26:11 -05:00
|
|
|
# Configuration
|
|
|
|
|
2020-06-26 13:16:41 -04:00
|
|
|
The configuration is based on the file
|
|
|
|
[defaults.hjson](https://yerbamate.dev/LemmyNet/lemmy/src/branch/master/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.
|
2019-12-31 09:31:34 -05:00
|
|
|
|
2020-06-26 13:16:41 -04:00
|
|
|
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`.
|
2019-12-31 09:31:34 -05:00
|
|
|
|
2020-06-26 13:16:41 -04:00
|
|
|
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.
|
2020-02-06 15:26:01 -05:00
|
|
|
|
2020-06-26 13:16:41 -04:00
|
|
|
If the Docker container is not used, manually create the database specified above by running the
|
|
|
|
following commands:
|
2020-02-06 15:26:01 -05:00
|
|
|
|
|
|
|
```bash
|
|
|
|
cd server
|
|
|
|
./db-init.sh
|
|
|
|
```
|