AccelerUpDocs
Reference/Environment variables

Environment variables

Every environment variable the backend reads, with its default.

Configuration is environment-only. There is no config file.

Server

VariableDefaultPurpose
SERVER_HOST0.0.0.0Bind address
SERVER_PORT8080Bind port
LOG_LEVELinfodebug, info, warn, error
DASHBOARD_URLPublic URL, used in links inside notifications
API_BASE_URLPublic API URL, used by the SDK and agent installers
ALLOWED_ORIGINSComma-separated CORS origins
TRUSTED_PROXY_CIDRSProxies whose forwarded client address is trusted
Warning

Without TRUSTED_PROXY_CIDRS, every request behind a proxy appears to come from the proxy. Rate limits then apply to the whole deployment as one client, and audit logs record the proxy's address rather than the user's.

Database

VariableDefault
DB_HOSTlocalhost
DB_PORT5432
DB_NAME
DB_USER
DB_PASSWORD
DB_SSL_MODEdisable
DB_MAX_CONNS25

Authentication

VariableDefaultPurpose
JWT_SECRETRequired. Signing key
JWT_TTL_HOURS24Session lifetime
COOKIE_DOMAINSession cookie domain
COOKIE_SECUREtrue in production
Caution

Changing JWT_SECRET invalidates every session immediately. That is the correct response to a suspected compromise and a bad surprise otherwise.

Rate limits

VariableDefaultApplies to
RATE_LIMIT_API600Authenticated API, per minute
RATE_LIMIT_PUBLIC30Login, signup, reset
RATE_LIMIT_OAUTH120OAuth redirects and callbacks

Email

VariablePurpose
SMTP_HOST, SMTP_PORTServer
SMTP_USER, SMTP_PASSCredentials
SMTP_FROMEnvelope sender

Used for invitations, password resets, scheduled reports and per-user paging.

Slack OAuth

Variable
SLACK_CLIENT_ID
SLACK_CLIENT_SECRET
SLACK_REDIRECT_URL

Only needed for Slack sign-in. A Slack notification channel needs only an incoming-webhook URL.

Monitoring worker

VariableDefaultPurpose
MONITOR_SYNC_INTERVAL30 (seconds)How often the service checker sweeps
MONITOR_WORKER_POOL_SIZEConcurrent checks
MONITOR_LOCATIONLabel recorded on each check, for multi-region checking

Browser ingest

VariableDefault
WEB_INGEST_KEY / WEB_INGEST_KEYS
WEB_INGEST_ORG_ID
WEB_INGEST_MAX_EVENTS100
WEB_INGEST_MAX_BODY_BYTES262144
WEB_INGEST_RATE_PER_MIN240
WEB_INGEST_SCRUB_PII
WEB_INGEST_SCRUB_IP

See Ingest endpoints.

Web error alerting

Variable
WEB_ERROR_ALERTS_ENABLED
WEB_ERROR_ALERT_CHANNELS
WEB_ERROR_SPIKE_THRESHOLD
WEB_ERROR_SPIKE_WINDOW_SECONDS
WEB_ERROR_ALERT_COOLDOWN_SECONDS

Copilot workspace

VariablePurpose
COPILOT_WORKSPACE_DIRSandbox directory. Unset means the feature is off
COPILOT_WORKSPACE_EXTENSIONSWhich file extensions may be read
COPILOT_WORKSPACE_MAX_FILE_KBPer-file cap

See Guarded actions.

Retention

VariableDefaultCovers
RETENTION_METRICS_DAYS90Metric tables
RETENTION_TELEMETRY_DAYS90Error tracking, APM, analytics, anomaly

See Data retention.

Other

VariablePurpose
REDIS_URLOptional cache
SEMEION_URL, SEMEION_TOKENLog shipping integration

Where this behaviour lives: backend/internal/config/config.go. If the code and this page disagree, the code is right — please fix the page.

Part of ReferenceThe exact numbers, names and limits, generated from the code.