Support env var parameter substitution

Signed-off-by: solimant <solimant@users.noreply.github.com>
This commit is contained in:
solimant
2024-03-11 05:11:22 +00:00
parent 87e9ed3ccc
commit 99bab65ff7
4 changed files with 61 additions and 2 deletions
+12
View File
@@ -199,6 +199,18 @@ configuration value will evaluate to `undefined`.
The substitution syntax can be escaped using `$${...}`, which will be resolved
as `${...}`.
Parameter substitution syntax (e.g. `${MY_VAR:-default-value}`) is also
supported to provide a default or fallback value for a given environment
variable if it is unset, or is declared but has no value. For example:
```yaml
app:
baseUrl: https://${HOST:-http://localhost:3000}
```
In the above example, when `HOST` is unset or has no value, it will be
substituted with `http://localhost:3000`.
## Combining Includes and Environment Variable Substitution
The Includes and Environment Variable Substitutions can be combined to do