Complete listing of all environment variables supported by Brokkr. All variables use the BROKKR__ prefix with double underscores (__) as nested separators.
Max age for completed diagnostics before deletion (hours)
BROKKR__BROKER__WEBHOOK_ENCRYPTION_KEY
String
(random)
Hex-encoded 32-byte AES-256 key for encrypting webhook URLs and auth headers. If empty, a random key is generated on startup (not recommended for production — webhooks won’t decrypt after restart).
BROKKR__BROKER__WEBHOOK_DELIVERY_INTERVAL_SECONDS
Integer
5
Webhook delivery worker poll interval (seconds)
BROKKR__BROKER__WEBHOOK_DELIVERY_BATCH_SIZE
Integer
50
Max webhook deliveries processed per batch
BROKKR__BROKER__WEBHOOK_CLEANUP_RETENTION_DAYS
Integer
7
How long to keep completed/dead webhook deliveries (days)
BROKKR__BROKER__AUDIT_LOG_RETENTION_DAYS
Integer
90
How long to keep audit log entries (days)
BROKKR__BROKER__AUTH_CACHE_TTL_SECONDS
Integer
60
TTL for PAK authentication cache (seconds). Set to 0 to disable caching.
Allowed CORS origins. Use * to allow all (not recommended for production).
BROKKR__CORS__ALLOWED_METHODS
String (comma-separated)
GET,POST,PUT,DELETE,OPTIONS
Allowed HTTP methods
BROKKR__CORS__ALLOWED_HEADERS
String (comma-separated)
Authorization,Content-Type
Allowed request headers
BROKKR__CORS__MAX_AGE_SECONDS
Integer
3600
Preflight response cache duration (seconds)
Note: Array-type CORS settings accept comma-separated strings when set via environment variables (e.g., BROKKR__CORS__ALLOWED_ORIGINS=http://a.com,http://b.com).