-
Notifications
You must be signed in to change notification settings - Fork 251
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
Nested config over environment variables #238
Comments
Colons (:) cause trouble/aren't possible in environment variable names. I found a tutorial page where environment variables with separator are used: http://www.codedependant.net/2015/01/31/production-ready-node-configuration/ This example allows to use environment variables with double underscore (__) separator: [...]
nconf
.env({separator:'__'})
[...] With this setting, an environment variable for nested config
equals to config key with default colon (:) delimiter
|
This feature is already mentioned in the documentation: https://github.com/indexzero/nconf#env |
Hello
|
I agree--this feature doesn't necessarily work how you might expect. This PR is a breaking change, but I think makes it clearer. Feedback welcome: #337 |
@mhamann what about .required() and whitelist? |
How can I pass nested configuration over environment variables?
What delimiter can I use for separating keys?
It would be helpful when an example is added to documentation.
The text was updated successfully, but these errors were encountered: