docs/conf: add env var substitution docs

This commit is contained in:
Patrik Oldsberg
2021-01-24 18:23:29 +01:00
parent 78a81c1be4
commit 3740a8bcb4
+16
View File
@@ -161,3 +161,19 @@ Example `my-secrets.json` file:
}
}
```
## Environment Variable Substitution
Configuration files support environment variable substitution via a `${MY_VAR}`
syntax. For example:
```yaml
app:
baseUrl: https://${HOST}
```
Note that all environment variables must be available, or the entire
configuration value will evaluate to `undefined`.
The substitution syntax can be escaped using `$${...}`, which will be resolved
as `${...}`.