File & variables

Configuration loads in layers; environment variables win. The core uses the KV__ prefix (double underscore as separator).

Precedence order #

1. Valeurs par défaut (code)
2. ./config.toml          (répertoire courant, dev)
3. /etc/kubuno/config.toml (production)
4. Variables KV__…         (surcharge finale)

Key variables #

VariablePurpose
KV__SERVER__PORTCore port (default 8080)
KV__SERVER__INTERNAL_SECRETShared secret between core ↔ modules
KV__DATABASE__URLPostgreSQL DSN
KV__AUTH__JWT_SECRETJWT signing secret
KV__STORAGE__BACKENDlocal or s3
KV__LOGGING__LEVELdebug · info · warn · error
Note

Double-underscore separator: KV__SERVER__PORT maps to the [server] port key in config.toml.