Updated View as Markdown

Configuration

Every environment variable is listed here, grouped by subsystem. Four variables are mandatory. Everything else has a default or gates an optional feature.

Bunyip Single Sign-On (required)

All four of these must be set or the server refuses to boot.

VariablePurpose
LETS_CHAT_BUNYIP_SSO_ISSUERThe Bunyip OP’s HTTPS issuer URL. Discovery and JWKS are fetched at boot.
LETS_CHAT_BUNYIP_SSO_CLIENT_IDConfidential client id registered on the OP.
LETS_CHAT_BUNYIP_SSO_CLIENT_SECRETConfidential client secret for client_secret_basic auth.
LETS_CHAT_BUNYIP_SSO_REDIRECT_URIMust equal <base>/auth/bunyip/callback. Registered on the OP’s redirect_uris.

A dev-only switch LETS_CHAT_BUNYIP_SSO_INSECURE_TLS=1 disables issuer TLS verification. Never set in production.

HTTP server

VariableDefaultPurpose
LETS_CHAT_BIND0.0.0.0:443Socket the server listens on.
LETS_CHAT_PUBLIC_URLderivedPublic base URL used in redirect URIs and email links.
LETS_CHAT_TRUSTED_PROXIESemptyCIDRs the server treats as trusted reverse proxies for X-Forwarded-*.

Data directories

VariableDefaultPurpose
LETS_CHAT_DATA_DIR/dataRoot under which the SQLite files and upload trees live.
LETS_CHAT_UPLOADS_DIR${DATA_DIR}/uploadsWhere user-uploaded files are stored.

The data directory must exist and be writable at boot. A missing directory is a fatal error, not an auto-create.

Email ingress (optional)

Mail-in replies and email-to-room ingestion live on an IMAP poll loop. See operations/email-ingress.md for the full operator setup.

VariablePurpose
LETS_CHAT_EMAIL_INGRESS_IMAP_HOSTIMAP server hostname.
LETS_CHAT_EMAIL_INGRESS_IMAP_USERMailbox username.
LETS_CHAT_EMAIL_INGRESS_IMAP_PASSWORDMailbox password.
LETS_CHAT_EMAIL_INGRESS_DOMAINHostname used in the <token>@<domain> recipient address.

Outbound email (optional)

Needed for digests, notification emails, and reply-by-email.

VariablePurpose
LETS_CHAT_SMTP_HOSTSMTP relay hostname.
LETS_CHAT_SMTP_USERNAMERelay credentials.
LETS_CHAT_SMTP_PASSWORDRelay credentials.
LETS_CHAT_SMTP_FROMFrom: header for outbound mail.

Voice and video (optional)

Lets chat uses a direct WebRTC mesh for small calls and a self-hosted LiveKit Selective Forwarding Unit for huddles and stage mode.

VariablePurpose
LETS_CHAT_LIVEKIT_URLLiveKit server URL.
LETS_CHAT_LIVEKIT_API_KEYLiveKit API key.
LETS_CHAT_LIVEKIT_API_SECRETLiveKit API secret.

Transcription agent (optional)

Enables the server-side transcription path for call captions. The agent runs as its own container alongside the app.

VariablePurpose
LETS_CHAT_TRANSCRIBE_AGENT_TOKENShared token the agent presents on callback.
LETS_CHAT_TRANSCRIBE_AGENT_NAMEAgent identifier. Defaults to transcriber.

See features/transcription-agent.md.

Semantic search (optional)

Lets chat’s search is full-text by default; a configured embeddings endpoint adds semantic search and “Find related”.

VariablePurpose
LETS_CHAT_EMBEDDINGS_URLHTTP endpoint that returns a vector for text.
LETS_CHAT_EMBEDDINGS_API_KEYOptional bearer token for the endpoint.

Protocol bridges (optional)

Register out-of-process bridge daemons. Each bridge gets a scoped API token and an outgoing webhook URL. See operations/protocol-bridges.md.

Internationalization

LETS_CHAT_DEFAULT_LOCALE sets the fallback locale. The in-app picker and the browser’s Accept-Language header take precedence. English and Spanish ship today.

Reference template

The .env.standalone file at the repo root is the annotated reference template: it names every variable with inline comments. Copy relevant values into your secrets store; do not deploy the file itself.

Back to top