Skip to content

Configuration

sorack reads everything from process.env, so inject configuration however you deploy — a Kubernetes Secret, docker -e, or a local .env. The full list lives in api/.env.example; the highlights are below.

VariableDefaultNotes
POSTGRES_HOSTlocalhost
POSTGRES_PORT5432
POSTGRES_DBsorack
POSTGRES_USERNAMEsorack
POSTGRES_PASSWORDrequired
VariableDefaultNotes
SORACK_AUTH_SECRETrandomSession-token pepper. Set this — otherwise sessions reset on every restart. Generate with openssl rand -base64 48.
SORACK_ADMIN_USERNAMEadminInitial admin.
SORACK_ADMIN_PASSWORDrandomIf unset, generated on first boot and printed to the log once.
SORACK_COOKIE_SECUREtrueSet false only when serving over plain HTTP locally.
SORACK_ALLOWED_ORIGINSComma-separated CORS allowlist. Only needed if the web UI is on a different origin than the api.
VariableDefaultNotes
SORACK_HEALTH_ENABLEDtrueSet false to turn the poller off.
SORACK_HEALTH_INTERVAL_MS30000Sweep cadence (the dev manifest sets 5000).
SORACK_HEALTH_TIMEOUT_MS5000Per-probe timeout (a probe can override).
VariableDefaultNotes
SORACK_RUNBOOKS_DIRDirectory for runbook .md files (file backend).
PORT3001API port.

Optional adapter credentials (Proxmox, etc.) are covered in Probes & adapters.