Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config with template variables #42

Merged
merged 1 commit into from
Jul 5, 2020
Merged

Conversation

Legion2
Copy link
Contributor

@Legion2 Legion2 commented Jul 3, 2020

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.

MagicMirrorOrg/MagicMirror#1947

@bastilimbach
Copy link
Owner

This is neat! Thank you for your contribution 🎉

@bastilimbach bastilimbach merged commit 0d51263 into bastilimbach:master Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants