Configuration
Required
| Variable | Purpose |
|---|---|
APP_URL | Browser origin; may be http://localhost:3000 locally |
KEYCLOAK_ISSUER | http(s)://host/realms/; http://localhost:8080/realms/identity locally |
KEYCLOAK_CLIENT_ID | OIDC client, normally account-center |
KEYCLOAK_CLIENT_SECRET | OIDC client secret |
KEYCLOAK_ADMIN_CLIENT_ID | Service account client |
KEYCLOAK_ADMIN_CLIENT_SECRET | Service account secret |
SESSION_SECRET | 32+ random bytes; encrypts session tokens |
DATABASE_URL | PostgreSQL account database |
SMTP_HOST | Real SMTP host in production |
SMTP_FROM | Sender address |
Optional
| Variable | Default | Purpose |
|---|---|---|
WORKSPACE_ID | default | Workspace key |
WORKSPACE_NAME | product default | Workspace label |
VALKEY_URL | empty | Shared rate limiting |
METRICS_TOKEN | empty | /metrics bearer token; empty disables |
AUDIT_RETENTION_DAYS | 365 | UI purge policy |
ALLOW_SELF_SIGNUP | false | Domain-restricted signup |
SIGNUP_EMAIL_DOMAINS | empty | Comma-separated domains |
SIGNUP_AUTO_OWNER | false | First signup becomes owner only when workspace is empty |
BRAND_NAME | workspace name | Branding fallback |
BRAND_COLOR | #2563eb | Branding fallback |
BRAND_TAGLINE | product tagline | Branding fallback |
BRAND_LOGO_URL | empty | Logo URL |
BRAND_SUPPORT_URL | empty | Support 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_centerdatabase.