document LEMMY_SMTP_PASSWORD (#224)

* document LEMMY_SMTP_PASSWORD

* chore: format code
This commit is contained in:
Michał 2023-06-21 19:13:54 +02:00 committed by GitHub
parent 126d8032b0
commit 915d7d898b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,7 +2,12 @@
The configuration is based on the file config.hjson, which is located by default at `config/config.hjson`. To change the default location, you can set the environment variable `LEMMY_CONFIG_LOCATION`.
An additional environment variable `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.
Additional environment variable are available:
- `LEMMY_DATABASE_URL`, which can be used with a PostgreSQL connection string like `postgres://lemmy:password@lemmy_db:5432/lemmy`, passing all connection details at once,
- `LEMMY_SMTP_PASSWORD`, which can be used to set the password to authenticate with the SMTP server.
Those environment variables will override values if specified in the config file.
If the Docker container is not used, manually create the database specified above by running the following commands: