# Sample Jammi config selecting Postgres + JetStream.
#
# `${...}` substitutions resolve from the process environment before the
# TOML parser runs; a missing variable is an error (no silent empty
# substitution). `$$` escapes a literal `$` for passwords that need one
# verbatim.
#
# Load with `JammiConfig::load(Some(path))`. The resolver also honours
# `JAMMI_CONFIG`, `./jammi.toml`, and the platform config directory; see
# `jammi_db::config::JammiConfig::load` rustdoc for the full search order.
= "/var/lib/jammi"
[]
= "postgres"
= "${POSTGRES_URL}"
= 16
# Optional; PgBouncer / RDS-Proxy deployments cap connection lifetime so the
# pool rotates onto fresh upstream connections instead of pinning one.
= 1800
[]
= "jet_stream"
= "nats://${NATS_HOST}:4222"
# Default retention if a topic does not set `broker_metadata.retention_seconds`.
= 604800
= "/var/run/secrets/nats.creds"
[]
= 8
= 8192
[]
= "0.0.0.0:8080"
= "0.0.0.0:8081"