@@ -66,4 +66,21 @@ print(f"This application is called {config.APPLICATION_NAME}, the mood is {confi
```
## Environment Variables
You can override single settings with environment variables in the style:
`PREFIX_KEY1_KEY2_..._KEYn`
For example, if your application name is `eigenservice`, a top-level setting like `loglevel` in your configuration can be overridden by setting the environment variable:
```bash
export EIGENSERVICE_LOGLEVEL=debug
```
For nested configuration keys, the variable name is constructed by concatenating the keys in uppercase with underscores. For instance, to override the setting `database.path`, you would set: