Skip to content

Question: Where to put app config files? #74

@kareha

Description

@kareha

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions