Skip to content

Configuration

Server settings are environment variables. With Docker Compose they live in .env, which ./scripts/selfhost-init.sh creates from .env.example. Never commit .env.

Everything an organization would set differently, such as your logo, statuses, SLA targets, integrations and AI keys, lives in Settings inside the app, not here. Environment variables are only for infrastructure.

migrate refuses to run while one of these is empty, and the web app and worker wait for it.

Setting What it is
APP_URL The address people open Chelsea at, with no trailing slash. Every link, callback and allowed origin starts from it. Outside localhost it must be https://.
POSTGRES_PASSWORD Password of the bundled Postgres. Letters and digits only, because it goes into a connection address.
SESSION_SECRET Signs session cookies. At least 32 characters. Separate several with commas to rotate: the first signs, all still verify.
ENCRYPTION_KEY Encrypts integration secrets in the database. Exactly 64 hex characters. Keep a copy with your backups: without it, every stored integration secret is unreadable.
S3_ACCESS_KEY, S3_SECRET_KEY Credentials of the bundled file server. Anything you choose.

selfhost-init.sh fills everything except APP_URL. Generate a value by hand with openssl rand -hex 32.

Setting Default What it is
S3_PUBLIC_URL http://localhost:9000 The address browsers reach the file server at. Behind a proxy this is usually its own host name.
S3_BUCKET The bucket files are stored in, created on first start.

The web app’s port (8080) and the file server’s port (9000) can be changed too; .env.example shows how.

Password resets, two-factor codes and invitations need email. Without it those features are off.

Setting What it is
RESEND_API_KEY Sends email through Resend.
EMAIL_FROM The sender, such as Chelsea <noreply@example.com>, on a domain verified with your email provider. Required in production.
EMAIL_TRANSPORT resend, smtp or log. When unset: Resend if its key is set, otherwise SMTP if an SMTP server is set, otherwise log, which only writes emails to the server log.
SMTP_URL, or SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASSWORD, SMTP_SECURE Sends email through any SMTP server instead.

Incoming email can open tickets. Chelsea can check a mailbox over IMAP every minute (IMAP_HOST, IMAP_PORT, IMAP_SECURE, IMAP_USER, IMAP_PASSWORD, IMAP_MAILBOX, IMAP_ADDRESS), or receive mail through a Resend webhook (RESEND_WEBHOOK_SECRET and INBOUND_EMAIL_DOMAIN). Either way, you still turn it on in Tickets › Settings › Inbound email.

Setting What it is
APP_NAME The product name shown in the interface, emails and API docs. Defaults to Chelsea.
REDIS_URL A Valkey or Redis cache. Optional.
VAPID_PUBLIC_KEY, VAPID_PRIVATE_KEY, VAPID_SUBJECT Browser push notifications. Generate the keys with bunx web-push generate-vapid-keys.
MCP_JWT_PRIVATE_KEY, MCP_JWT_PUBLIC_KEY A key pair that signs sign-in tokens for apps and agents. Leave both unset and Chelsea creates and stores its own. Set both or neither.
STRIPE_APP_TEST_INSTALL_URL, STRIPE_APP_LIVE_INSTALL_URL, STRIPE_APP_TEST_SECRET_KEY, STRIPE_APP_LIVE_SECRET_KEY Only for the Connect with Stripe button. Pasting a Stripe key in Settings needs none of these.
EXTENSION_CWS_URL, EXTENSION_AMO_URL The Chrome Web Store page and the Firefox Add-ons page of your browser extension, which the profile’s Extensions tab links to. Each is optional, and a store without an address is not shown. The extension whose id ends the EXTENSION_CWS_URL address is also the Chrome extension allowed to sign in.
DESKTOP_DOWNLOADS_URL The https:// address of a desktop app release file, in the format of the download page’s own. When set, team members get a Desktop app card under Profile › Integrations that offers its installers; unset, there is no card.
SENTRY_DSN Sends errors to Sentry or a compatible server. Nothing is sent while unset.
GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET Deprecated. Set up Google sign-in in Settings › General instead.

Asana, Slack, Discord, Cap, GitHub, 1Password, Telnyx and AI provider keys are all saved in Settings inside the app. They need no environment variables.