Add the possibility to use environment variables in the config.js which are evaluated once when starting the docker container. This feature only applies to config.js.template and generate config.js when the container is started. Existing configurations should not be affected by this new feature (opt-in).
The environment variables are replaced with the linux envsubst tool, which uses Shell variable syntax ($name and ${name}) and the variables are given via the environment. envsubst only replaces the variables and does nothing extra such as bash substitution expressions or default values.
Add the possibility to use environment variables in the
config.js
which are evaluated once when starting the docker container. This feature only applies toconfig.js.template
and generateconfig.js
when the container is started. Existing configurations should not be affected by this new feature (opt-in).The environment variables are replaced with the linux
envsubst
tool, which uses Shell variable syntax ($name
and${name}
) and the variables are given via the environment.envsubst
only replaces the variables and does nothing extra such as bash substitution expressions or default values.MichMich/MagicMirror#1947