OptionalauthOptionalbackupOptionalcloudOptionalcorsOptionalloggingOptionalformat?: "text" | "json"Log format (any case is accepted at runtime). Env: LOG_FORMAT.
Optionallevel?: "info" | "warn" | "error" | "debug"Log level (any case; warning, trace, verbose, fatal and critical are
accepted aliases at runtime; another word is a warning). Env: LOG_LEVEL.
OptionalserverOptionalhost?: stringOptionalhttpPort?: numberOptionalhttpSocketPath?: stringOptionaltcpPort?: numberOptionaltcpSocketPath?: stringOptionaltlsCertFile?: stringPath to PEM certificate file — enables native TLS on TCP + HTTP (with tlsKeyFile)
OptionaltlsKeyFile?: stringPath to PEM private key file — enables native TLS on TCP + HTTP (with tlsCertFile)
OptionalstorageOptionalbrokerId?: stringStable identifier for this broker process; generated automatically when omitted.
OptionalcompletedRetentionMs?: number | nullAutomatic age-based completed-job retention in milliseconds; null disables it.
OptionaldataPath?: stringOptionaldriver?: "memory" | "sqlite" | "postgres"Persistence backend. Inferred from url/dataPath when omitted.
OptionalidleTransactionTimeoutMs?: numberOptionalleaseDurationMs?: numberOptionallockTimeoutMs?: numberOptionalmaxCompletedJobs?: numberHot in-memory completed-job window; this is not durable retention.
OptionalmaxConcurrentOperations?: numberOptionalmaxQueuedOperations?: numberOptionalmaxRemovedResults?: numberMaximum retained removed-on-completion results; 0 disables the retention.
OptionalmaxSnapshotJobs?: numberOptionalmaxSnapshotPayloadBytes?: numberOptionalnamespace?: stringIsolates independent bunqueue installations sharing one PostgreSQL database.
OptionalpollIntervalMs?: numberOptionalpoolSize?: numberOptionalremovedResultRetentionMs?: numberMemory-only retention of a removed-on-completion job's result, in ms; 0 disables it.
OptionalstatementTimeoutMs?: numberOptionalurl?: stringPostgreSQL connection URL. Required when driver is postgres.
OptionaltelemetryOptionalmaxPrometheusQueues?: numberMaximum queue label values exposed to Prometheus; zero disables per-queue series.
OptionaltimeoutsOptionallock?: numberIgnored (it never took effect; a warning is logged). Set LOCK_TIMEOUT_MS instead.
Optionalshutdown?: numberGraceful-shutdown wait for active jobs, ms (0 = do not wait). Env: SHUTDOWN_TIMEOUT_MS.
Optionalstats?: numberStats log interval, ms (>= 1). Env: STATS_INTERVAL_MS.
Optionalworker?: numberIgnored (it never took effect; a warning is logged). Set WORKER_TIMEOUT_MS instead.
OptionalwebhooksOptionalmaxRetries?: numberIgnored (it never took effect; a warning is logged). Set WEBHOOK_MAX_RETRIES instead.
OptionalretryDelay?: numberIgnored (it never took effect; a warning is logged). Set WEBHOOK_RETRY_DELAY_MS instead.
Global bunqueue configuration (all sections optional). The server validates the file at startup: a value it cannot use stops startup with the key name; a value earlier releases ran with (a numeric string port or timeout, a string read by its truthiness where a boolean is expected,
nullfor "unset", a documented fallback) keeps working, with a warning where it is ignored or reinterpreted; an unknown key is logged as a warning. See docs/features/configuration.md.