Is it possible to use environment variables in config.yml?
See original GitHub issueHi --First off great work on this and also the old incarnation of the project!
I’m working to migrate to dnsrobocert from the old project, and I was wondering if it is possible to use environment variables in the config.yml? something like:
email_account: ${LETSENCRYPT_USER_MAIL}
I ask because I use this tool to inject environment variables into my container, so I don’t have to store them in plain text on my server. https://github.com/cyberark/summon
Perhaps there’s a better way of thinking about how to protect my “secrets” with dnsrobocert, so I am all ears for alternatives.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Use environment variables in the configuration - Elastic
You can use environment variable references in the config file to set values that need to be configurable during deployment. To do this,...
Read more >How to use a YAML file or environment ... - Great Expectations!
In most cases, we suggest using a config variables YAML file. YAML files make variables more visible, easily editable, and allow for modularization...
Read more >Document how to use environment variables in `.yml` config file
yml ) to use graphql-codegen on a CI server. Describe the solution you'd like. Be able to pass headers in via the CLI,...
Read more >Introduction to environment variables - CircleCI
Use environment variables to set up various configuration options, and keep your set-up secure with secrets, private keys, and contexts.
Read more >How do I connect .env file to config.yml? - Stack Overflow
You can't include .env file inside a YAML one. However, you can interpolate variables into your config.yml file using the ${} notation.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Injecting environment variables in the configuration file is now supported with the new release 3.3.2.
This is independant from #27, that I will do later, and consists in a configuration through environment variables without any configuration file.
Yes it refers to the old environment variables. However, the new one is not yet implemented. I am working on it, and hope to finish it by the end of this week.