Hi,
usually you have a config/ folder where a basic default.js file is in, which exports an object of configuration values.
e.g.:
module.exports = {
session: {
key1: "abcde"
},
mailserver: {
relayHost: "127.0.0.1"
}
// ... a lot more values
}
And then for each env you create a specific copy of that. e.g.: config/production.js. Which is gitignored.
What is your best practice for handling (complex & nested) config values, which are different for each environment?
Of course you don't want to use 'docker secret' for that right?
Thank you
Hi,
usually you have a config/ folder where a basic default.js file is in, which exports an object of configuration values.
e.g.:
And then for each env you create a specific copy of that. e.g.: config/production.js. Which is gitignored.
What is your best practice for handling (complex & nested) config values, which are different for each environment?
Of course you don't want to use 'docker secret' for that right?
Thank you