One can use config files that are TOML, YAML, or JSON based, just include .json|.js
, .yml|.yaml
or .toml
extenstions to the files in question
I'll show configs using the TOML format, because i think it's easier to read then yaml for complex items.
Here we'll attempt to go through the 4 main config files, "config.toml", "prereg.toml", "injector.toml", and "api.toml".
cadent -config=config.toml
cadent -config=config.toml -prereg=prereg.toml
cadent -injector=injector.toml
cadent -api=api.toml
We use a modified toml format that accepts environment variables as well.
The general format for using the ENV is
$ENV{MY_ENV_VAR:defaultvalue}
at the moment "multiline" default values are not supported (and not really needed here, yet)