mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-16 09:24:00 +00:00
Update configuration documentation
This commit is contained in:
parent
bfd8f52497
commit
09498d8bb3
1 changed files with 8 additions and 13 deletions
|
@ -1,22 +1,17 @@
|
||||||
# Configuration
|
# Configuration
|
||||||
|
|
||||||
The configuration is based on the file
|
The configuration is based on the file [defaults.hjson](https://yerbamate.dev/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.
|
||||||
[defaults.hjson](https://yerbamate.dev/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.
|
|
||||||
|
|
||||||
To use a different `config.hjson` location than the current directory, set the environment variable `LEMMY_CONFIG_LOCATION`. Make sure you copy the `defaults.hjson` if you do this, otherwise you will be missing settings.
|
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:
|
||||||
|
|
||||||
Additionally, you can override any config files with environment variables. These have the same
|
LEMMY_CONFIG_LOCATION # config.hjson
|
||||||
name as the config options, and are prefixed with `LEMMY_`. For example, you can override the
|
LEMMY_CONFIG_DEFAULTS_LOCATION # defaults.hjson
|
||||||
`database.password` with `LEMMY_DATABASE__POOL_SIZE=10`.
|
|
||||||
|
|
||||||
An additional option `LEMMY_DATABASE_URL` is available, which can be used with a PostgreSQL
|
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`.
|
||||||
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
|
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.
|
||||||
following commands:
|
|
||||||
|
If the Docker container is not used, manually create the database specified above by running the following commands:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cd server
|
cd server
|
||||||
|
|
Loading…
Reference in a new issue