I didn't see this anywhere in the documentation, but is there a way to have nested config variables in the config schema definition? For example:
var config = require('convict')({
loggly: {
token: {
doc: '',
format: String,
env: 'LOGGLY_TOKEN'
},
subdomain: {
doc: '',
format: String,
env: 'LOGGLY_SUBDOMAIN'
}
}
});
edit: Or is there another way to go about this completely? My only requirement would be to not store the information in a file. I know I can do nested config there, but I want the schema functionality to get the config variables from environment variables.
I didn't see this anywhere in the documentation, but is there a way to have nested config variables in the config schema definition? For example:
edit: Or is there another way to go about this completely? My only requirement would be to not store the information in a file. I know I can do nested config there, but I want the schema functionality to get the config variables from environment variables.