feat: Add capability to set default for environment variable in config (#1248)

Support `${ENV_VALUE:default_value}`

🛠️ Fixes #1001
This commit is contained in:
Dr. Strangelove
2025-08-26 16:28:55 -04:00
committed by GitHub
parent 7651357d42
commit 5bcd52e7dc
2 changed files with 10 additions and 1 deletions

View File

@@ -22,6 +22,11 @@ etc., you could use environment variables instead with the format `${ENV_NAME}`.
user: ${USER_NAME}
password: ${PASSWORD}
```
A default value can be specified like `${ENV_NAME:default}`.
```yaml
port: ${DB_PORT:3306}
```
### Sources