Links
Comment on page

Configuration

Here you can see all available environment variables of the controlplane.
Check the Cosmo Repository for a default configuration.
Environment variable
Description
Default
Required
DATABASE_URL
The connection URL of the database.
postgresql://postgres:changeme@localhost:5432/controlplane
PORT
The port on which the controlplane runs.
3001
ALLOWED_ORIGINS
The controlplane url.
LOG_LEVEL
Configures the log level.
info
DEBUG_SQL
Configures the logs of SQL.
false
CLICKHOUSE_DSN
The connection URL of clickhouse.
""
AUTH_REDIRECT_URI
The authorized redirect URLs.
http://localhost:3001/v1/auth/callback
WEB_BASE_URL
The URL of studio.
""
AUTH_JWT_SECRET
The JWT secret used for verifying and signing JWTs. (32 characters)
""
OPENAI_API_KEY
The api key of OPEN API
""
KC_LOGIN_REALM
The realm of the login credentials.
"master"
KC_REALM
The keycloak realm of your Client.
""
KC_CLIENT_ID
The keycloak client ID.
""
KC_ADMIN_USER
The admin username.
""
KC_ADMIN_PASSWORD
The admin password.
""
KC_API_URL
The URL to your keycloak API endpoint. Used internally for administration.
""
KC_FRONTEND_URL
The public URL of your keycloak instance. Used for redirects.
""
WEBHOOK_URL
The endpoint to which you want to fire platform webhooks
""
WEBHOOK_SECRET
The secret key to verify webhook requests
""