Skip to Content
Workspace

Configuration

Every environment variable, what runs next to Workspace (Postgres required; S3, SMTP, LiveKit, push optional) and what you lose without each.

All settings are environment variables in infra/production/.env; .env.example documents each one. Apply a change with docker compose up -d.

Core

VariableMeaning
APP_URL, APP_DOMAINPublic address, used in e-mails, links and cookies
LETSENCRYPT_EMAILCertificate expiry notices
COMPOSE_PROFILESOptional parts started by default: s3, meet, pgbouncer
WORKSPACE_IMAGEImage to run, e.g. ghcr.io/hungga1711/workspace:1.0.0
SETUP_TOKENOne-time token for /setup; generated when empty
TRUSTED_PROXY_HOPSProxies in front of the app, for per-IP limits
DISABLED_FEATURESParts to leave out, comma-separated: docs, whiteboards, calendar, time, ai. Chat and tasks are always on

Secrets (INTERNAL_TOKEN_SECRET, SESSION_SECRET, AUTH_SECRET, the Postgres passwords, AI_SECRETS_KEY) left empty are generated once. Set AI_SECRETS_KEY explicitly so saved AI keys survive a rotation of INTERNAL_TOKEN_SECRET. What changing each secret breaks: operations runbook §5.

Optional features

FeatureSettingsWithout it
E-mailSMTP_URL=smtp://user:password@smtp.example.com:587, MAIL_FROMAdmins hand over activation links and temporary passwords
Bundled S3COMPOSE_PROFILES=s3, FILES_DOMAIN, S3_ENDPOINT=https://<files domain>Files on the server's disk
Your S3 / R2S3_ENDPOINT, S3_REGION, S3_BUCKET, keys; CORS PUT/GET from APP_URLFiles on the server's disk
AIAdmin › System › AI connections, no restart; or OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY, OPENAI_BASE_URLAI hidden (Turn AI on or off)
Video meetingsLIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET, MEET_DOMAIN; TCP 7881, UDP 50000–50100; --profile meetAgendas, minutes and action items, no video
Web PushVAPID_*, then rebuild the imageIn-app notifications only

WEBHOOK_ALLOW_PRIVATE is for development only.

Full reference, in the repository: infra/production/README.md §2 and §6.

On this page