docs: infra notes in configuration.md

This commit is contained in:
Vyacheslav Matyukhin 2022-04-12 11:05:30 +03:00
parent 5ab67ce7fe
commit 328fdd69bd
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C

View File

@ -1,12 +1,15 @@
# Configuration
Code reads its configuration from the environment variables.
All configuration is done through environment variables.
Not all of these are necessary to run the code. The most important ones are:
- `DIGITALOCEAN_POSTGRES` pointing to the working Postgres database
Environment for production deployments is configured through Terraform, see [infra.md](./infra.md) for details.
For local development you can write `.env` file by hand or import it from Heroku with `heroku config -s -a metaforecast-backend` and then modify accordingly.
There's also a template configuration file in `../env.example`.
## Database endpoints