config

Everything about an application that varies between deploys, such as database addresses, credentials and hostnames.

In more detail

Factor III of the twelve-factor app: store config in the environment, strictly separate from code. Settings that do not vary between deploys, such as how routes are wired, are not config in this sense. Missing required config should stop the process at start up, loudly; a default is fine for a release label but never for a secret.

Example

DATABASE_URL = os.environ["DATABASE_URL"]  # III: no default, so missing config stops the process

Related terms

Taught in

References

Certification courses