Configuration

Required

VariablePurpose
APP_URLBrowser origin; may be http://localhost:3000 locally
KEYCLOAK_ISSUERhttp(s)://host/realms/; http://localhost:8080/realms/identity locally
KEYCLOAK_CLIENT_IDOIDC client, normally account-center
KEYCLOAK_CLIENT_SECRETOIDC client secret
KEYCLOAK_ADMIN_CLIENT_IDService account client
KEYCLOAK_ADMIN_CLIENT_SECRETService account secret
SESSION_SECRET32+ random bytes; encrypts session tokens
DATABASE_URLPostgreSQL account database
SMTP_HOSTReal SMTP host in production
SMTP_FROMSender address

Optional

VariableDefaultPurpose
WORKSPACE_IDdefaultWorkspace key
WORKSPACE_NAMEproduct defaultWorkspace label
VALKEY_URLemptyShared rate limiting
METRICS_TOKENempty/metrics bearer token; empty disables
AUDIT_RETENTION_DAYS365UI purge policy
ALLOW_SELF_SIGNUPfalseDomain-restricted signup
SIGNUP_EMAIL_DOMAINSemptyComma-separated domains
SIGNUP_AUTO_OWNERfalseFirst signup becomes owner only when workspace is empty
BRAND_NAMEworkspace nameBranding fallback
BRAND_COLOR#2563ebBranding fallback
BRAND_TAGLINEproduct taglineBranding fallback
BRAND_LOGO_URLemptyLogo URL
BRAND_SUPPORT_URLemptySupport link

SMTP

Port 587:

SMTP_PORT=587
SMTP_STARTTLS=true
SMTP_SSL=false

Port 465:

SMTP_PORT=465
SMTP_SSL=true
SMTP_STARTTLS=false
Port 1025 is Mailpit only, never production.

Valkey

Valkey is used only for shared rate limiting.

VALKEY_URL=redis://valkey:6379
For one instance it can be empty; the app falls back to an in-memory limiter. Multiple replicas need shared Valkey or proxy-level limiting.

Database

The schema is created and migrated on first use. Back up both:
  • Keycloak database;
  • Identity Console account_center database.