Complete reference for all ServerBee server and agent configuration options.
ServerBee uses Figment for configuration loading, which supports layered configuration from multiple sources. This page provides a complete reference for every configuration option.
These variables are for local repo tooling and developer workflows. They are not Figment-backed runtime config for the ServerBee server or agent binaries.
Environment Variable
Used By
Description
SERVERBEE_PROD_URL
make db-pull, make web-dev-prod
Production base URL used by the database pull script and the frontend prod-proxy workflow
SERVERBEE_PROD_API_KEY
make db-pull
Admin-scoped API key for the production backup API. Do not reuse this for make web-dev-prod
SERVERBEE_PROD_READONLY_API_KEY
make web-dev-prod
Member-scoped API key injected by the frontend dev proxy for live production browsing
ALLOW_WRITES
make web-dev-prod
Local opt-in override. Set to 1 to disable the proxy's read-method-only block. When set, the UI banner changes from the normal read-only warning to a stronger write-enabled warning
These variables are intentionally scoped to local tooling. ALLOW_WRITES is not a server feature flag, it is an explicit local override for the frontend prod-proxy workflow only.
There is no admin username/password environment variable. On first start (when no users exist) the server auto-creates an admin account with a randomly generated password and prints it once to the server/container logs as a highlighted credentials banner. Capture it from the logs, then on first login you are required to change this password and may optionally choose a different username.
Path to a MaxMind-compatible MMDB file. Non-empty path enables this custom GeoIP database; otherwise admins can download the DB-IP Lite database from Settings → GeoIP Database
Pinned release source base URL the Agent downloads upgrades from. Any HTTPS host mirroring the GitHub releases path layout {base}/download/v{version}/{asset} and {base}/download/v{version}/checksums.txt works. Compile-time default is overridable via the SERVERBEE_RELEASE_REPO build-time env
SERVERBEE_UPGRADE__RELEASE_CERT_SPKI_SHA256
""
Optional TLS certificate SPKI pin for the release host. 64 lowercase hex chars = SHA-256 of the leaf cert SubjectPublicKeyInfo DER. Empty = disabled. If set, the Agent additionally pins the leaf cert SPKI after standard chain validation. Invalid (non-64/non-hex) values are rejected at startup
Days to keep hourly aggregated network probe records
audit_logs_days
u32
180
Days to keep audit log entries
traffic_hourly_days
u32
7
Days to keep hourly traffic records
traffic_daily_days
u32
400
Days to keep daily traffic records
task_results_days
u32
7
Days to keep task execution results
docker_events_days
u32
7
Days to keep Docker event records
service_monitor_days
u32
30
Days to keep service monitor check records
Raw metric records are collected every 60 seconds and retained for 7 days by default. The hourly aggregator computes averages so you can keep long-term trends for 90 days without excessive storage. Adjust these values based on your disk space and monitoring needs.
Path to a MaxMind-compatible MMDB file. Non-empty path enables this custom GeoIP database; if empty, the UI can download DB-IP Lite into the server data directory
Resend API key (resend.com/api-keys). Required to use the Email notification channel. The from address on each email channel must belong to a domain verified at resend.com/domains
Base URL for agent upgrade release assets. The server appends /download/v{version}/ to construct the asset download URL
latest_version_url
string
""
Optional custom URL for latest version API. If empty, the server queries GitHub API to determine the latest version. Use this to override with a custom version endpoint
Base URL for agent upgrade release assets. Must replicate the GitHub releases directory layout: {base}/download/v{version}/{asset} for binaries and {base}/download/v{version}/checksums.txt for checksum verification. The compile-time default is overridable via the SERVERBEE_RELEASE_REPO build-time env var
release_cert_spki_sha256
string
""
Optional TLS SPKI pin for the release host. Set to 64 lowercase hex characters (SHA-256 of the leaf certificate's SubjectPublicKeyInfo DER encoding). Empty disables pinning. If set, the agent additionally validates the leaf cert SPKI after standard chain validation. Invalid format (non-64-char or non-hex) is rejected at startup
The dashboard "latest version" check uses the Server-configured release source (upgrade.release_base_url / upgrade.latest_version_url). Those are separate Server-side settings used only for the dashboard's "latest version" lookup, and are distinct from the Agent's [upgrade] release_repo_url, which governs what the Agent actually downloads. For consistent upgrade behavior, point both the Server and the Agent at the same release repository unless you intentionally want them to track different sources.
How to obtain the SPKI pin for a release host certificate:
Everything else uses sensible defaults. On first startup, ServerBee creates the admin user with a random password and prints it once in the server logs.