feat: HOWTO backwards compat in tmpl files
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-03-23 12:48:53 +01:00
parent 3112d4d9e5
commit 2f2ff65fe9

View File

@ -56,6 +56,14 @@ environment:
- NEW_ENV_VAR=${NEW_ENV_VAR:-false}
```
Another approach is to set this default within the configuration where you
reference the environment variable. In `.tmpl` files, this generally works out
something like this:
```
my_config_option = {{ or (env "NEW_ENV_VAR") "false" }}
```
Sometimes it is not appropriate to provide a default and it is important that
other Co-op Cloud operators make an informed choice about the setting of an
environment variable. In this case, please consider leaving a note about your