jump to content

Configuration

Explains how probod loads its JSON/YAML config file at startup, the role of probod-bootstrap, and which secrets must stay persistent across restarts.

View as Markdown

probod loads a JSON or YAML configuration file passed with -cfg-file. Configuration is read at startup and is not hot-reloaded. After changing the file, restart every application instance for the new settings to take effect.

You can write and manage the configuration file directly. For container-based deployments, the official image can instead use probod-bootstrap to generate a YAML file from PROBOD_* environment variables before starting probod.

flowchart LR
    managed["JSON or YAML configuration"] --> probod["probod<br/>-cfg-file config"]
    environment["PROBOD_* environment variables"] --> bootstrap["probod-bootstrap"]
    bootstrap --> generated["Generated YAML configuration"]
    generated --> probod

probod-bootstrap is a one-time configuration generator. It exits after writing the file; it does not run beside probod, watch the environment, or reload configuration.

Some configuration keys protect persisted data or authentication state. Generate them before the first production start, use the same values on every application instance, and keep recoverable backups of them.

SettingPurposeEffect of replacing or losing it
Encryption keyEncrypts sensitive application dataExisting encrypted data becomes unreadable
Session cookie secretSigns authentication cookiesExisting user sessions become invalid
Password pepperProtects stored password hashesExisting passwords can no longer be verified
OAuth 2.0 server signing keySigns tokens issued by the platformPreviously issued tokens can no longer be verified

Ultima actualizare: