Skip to main content

Server Environment

These environment variables configure the Blackbox server.

VariableRequiredDefaultDescription
JWT_SECRETYesNoneSecret used to sign JWT session tokens. Use a long random value.
AGENT_TOKENSYesNoneComma-separated or newline-separated node=token pairs.
WEBHOOK_SECRETYesNoneShared secret for validating webhook requests.
DB_PATHNo/data/blackbox.dbSQLite database path.
LISTEN_ADDRNo:8080TCP bind address for the server.
JWT_TTLNo24hSession lifetime using Go duration syntax.
TZNoContainer defaultIANA timezone for process logs.
TRUSTED_PROXY_IPNoNoneSeparate-host proxy IP trusted for forwarded client IPs.

Minimum Required Set

At minimum, most deployments need:

  • JWT_SECRET
  • AGENT_TOKENS
  • WEBHOOK_SECRET