Frontend
| Variable | Type | Default | Usage |
|---|
| QALITA_API_URL | string (URL) | http://backend:3080 | Base backend URL called by the frontend |
| NEXT_TELEMETRY_DISABLED | boolean (0/1) | 1 | Disables Next.js telemetry |
| NEXT_WEBPACK_USEPOLLING | boolean | false | Enables Webpack polling when inotify is unavailable (e.g., containers) |
| NEXT_SHARP_PATH | string (path) | /app/node_modules/sharp | Path to Sharp binary for image optimization |
| NODE_ENV | string (development/production/test) | production | Next.js execution mode |
Backend
Database
| Variable | Type | Default | Usage |
|---|
| DB_USER | string | none | PostgreSQL username |
| DB_PASSWORD | string | none | PostgreSQL password |
| DB_HOST | string (host) | none | PostgreSQL server address |
| DB_NAME | string | none | PostgreSQL database name |
| DB_PORT | number | 5432 | PostgreSQL server port |
Mail
| Variable | Type | Default | Usage |
|---|
| MAIL_USERNAME | string | none | SMTP username |
| MAIL_PASSWORD | string | none | SMTP password |
| MAIL_FROM | string (email) | none | Sender email address |
| MAIL_PORT | number | none | SMTP server port |
| MAIL_SERVER | string (host) | none | SMTP server address |
| MAIL_STARTTLS | boolean (true/false) | true | Enables STARTTLS |
| MAIL_SSL_TLS | boolean (true/false) | false | Uses implicit SSL/TLS |
| MAIL_FROM_NAME | string | FastAPI | Displayed sender name |
| MAIL_USE_CREDENTIALS | boolean (true/false) | true | Sends credentials to SMTP server |
| MAIL_VALIDATE_CERTS | boolean (true/false) | true | Validates TLS certificates |
QALITA
| Variable | Type | Default | Usage |
|---|
| QALITA_ENV | string (dev/staging/prod) | dev | Backend execution environment |
| QALITA_SECRET_KEY | string | none | Secret key for signing tokens |
| QALITA_ALGORITHM | string | HS256 | Token signing algorithm |
| QALITA_API_TOKEN_EXPIRE_MINUTES | number | 10080 | API token lifetime (minutes), enforced since 3.2.2: see token lifetime |
| QALITA_ACCESS_TOKEN_EXPIRE_MINUTES | number | 15 | Session token lifetime (minutes), enforced since 3.2.2: see token lifetime |
| QALITA_ADMIN_USERNAME | string | none | Initial admin username |
| QALITA_ADMIN_PASSWORD | string | none | Initial admin password |
| QALITA_DEBUG | boolean | false | Enables backend debug mode |
| QALITA_AUTH_MODE | string (table/ldap/azure) | table | Authentication mode |
| QALITA_DEFAULT_ROLE | string (role name) | public | Role given on joining a team (and LDAP fallback): public/datascientist/datamanager/dataengineer |
| QALITA_API_MODE | string (dual/legacy/v3) | dual | API surfaces served: dual (v1/v2 + v3, required by a 3.x frontend), legacy (v1/v2 only), v3 |
| QALITA_RETENTION_LOG_HOURS | number | 720 | Log retention period (hours) |
| QALITA_MISSED_RUN_GRACE_SECONDS | number | 3600 | Delay after a routine's scheduled time before the run counts as missed (seconds) |
| QALITA_MISSED_RUN_MAX_QUEUE_SECONDS | number | 43200 | Extra wait for a routine queued on a busy online worker before it counts as missed (seconds) |
| QALITA_ORGANIZATION_NAME | string | none | Organization name displayed/notifications |
| QALITA_LICENSE_KEY | string | none | Registry password (license key) |
| QALITA_LICENSE_USER | string | none | Registry username (license holder) |
| QALITA_LICENSE_REGISTRY_URL | string (URL) | https://registry.qalita.io | License registry used for validation |
| QALITA_PUBLIC_PLATFORM_URL | string (URL) | none | Public platform URL; SSO callbacks send the browser back to it |
| QALITA_PUBLIC_DOC_URL | string (URL) | none | Public documentation URL |
| QALITA_PUBLIC_API_URL | string (URL) | none | Public API URL, as the browser reaches it: see Redirect URLs |
| QALITA_LICENCE_SCOPE | string | none | License scope |
Token lifetime
Before platform 3.2.2, the expiration date of a token was not checked. Since 3.2.2, the backend refuses every expired token, on the REST API, the workers' gRPC connection, the live logs WebSocket and the web session (see JWT Token Authentication).
QALITA_API_TOKEN_EXPIRE_MINUTES sets the lifetime of the API tokens used by the CLI, workers and scripts. Unset, it is 10080 (7 days); Docker Compose does not set it. The Helm chart sets 525600 (1 year) with backend.APItokenExpireMinutes. Size it for your workers: a worker whose token expires is refused until it gets a new token and runs qalita worker login again.
QALITA_ACCESS_TOKEN_EXPIRE_MINUTES sets the lifetime of web sessions. Unset, it is 15; Docker Compose (.env.example) and the Helm chart (backend.AUTHTokenExpireMinutes) set 240 (4 hours).
A lifetime applies to tokens issued after the change: a token keeps the expiration date it was issued with.
LDAP
| Variable | Type | Default | Usage |
|---|
| LDAP_SERVER | string (URL/host) | none | LDAP server |
| LDAP_SEARCH_USER | string (simple DN) | none | LDAP search account |
| LDAP_SEARCH_PASSWORD | string | none | LDAP search account password |
| LDAP_DN | string (base DN) | none | Base DN for searches (e.g., dc=example,dc=com) |
| LDAP_GROUP_DN | string (base DN) | LDAP_DN | Base DN for group searches (e.g., ou=groups,dc=example,dc=com) |
| LDAP_SEARCH_USER_FILTER | string (LDAP filter) | none | Filter to find users, with exactly one %s (the login) |
| LDAP_ROLE_MAPPING | string (role:group_dn;role:group_dn) | none | Group-to-application-role mapping, not JSON: see LDAP role mapping |
| LDAP_SEARCH_GROUP_FILTER | string (LDAP filter) | none | Filter to retrieve groups, with %s/{uid} or {dn}: see LDAP group lookup |
| LDAP_TLS | boolean | none | Enables TLS for LDAP |
Microsoft (Azure Entra) OIDC / SSO
| Variable | Type | Default | Usage |
|---|
| MICROSOFT_CLIENT_ID | string | none | Azure Entra application (client) ID (OIDC) |
| MICROSOFT_CLIENT_SECRET | string | none | Azure Entra client secret |
| MICROSOFT_TENANT_ID | string | none | Azure Entra tenant ID or domain; common, organizations, consumers or empty make the application multi-tenant: see Accounts and identities |
| MICROSOFT_REDIRECT_URL | string (URL) | none | Backend callback, ending with /saml/callback: see Redirect URLs |
| MICROSOFT_SCOPES | string (space-separated) | openid profile email | Requested OIDC scopes; openid and profile are always added |
Google OIDC / SSO
| Variable | Type | Default | Usage |
|---|
| GOOGLE_OAUTH_CLIENT_ID | string | none | Google OAuth client ID |
| GOOGLE_OAUTH_CLIENT_SECRET | string | none | Google OAuth client secret |
| GOOGLE_OAUTH_REDIRECT_URL | string (URL) | none | Backend callback, ending with /google/callback: see Redirect URLs |
| GOOGLE_OAUTH_SCOPES | string (space-separated) | openid profile email | Requested scopes; openid is always added |
How Microsoft, Google and Apple sign-ins work, and how their accounts are matched, is described in Sign-in with Microsoft, Google or Apple.
| Variable | Type | Default | Usage |
|---|
| QALITA_S3_URL | string (URL) | none | S3-compatible endpoint (e.g., MinIO, AWS S3) |
| QALITA_S3_KEY_ID | string | none | S3 access key ID |
| QALITA_S3_KEY_SECRET | string | none | S3 secret key |
Cache
| Variable | Type | Default | Usage |
|---|
| REDIS_SERVER | string (host) | localhost | Redis server address |
| REDIS_PORT | number | 6379 | Redis port |
| REDIS_PASSWORD | string | none | Redis password (optional) |
LLM
| Variable | Type | Default | Usage |
|---|
| LLM_PROVIDER | string | none | Provider of the env-default AI configuration created at startup (openai, anthropic, mistral, ollama, openrouter, generic…) |
| LLM_API_KEY | string | none | API key of that configuration |
| LLM_MODEL | string | none | Main model |
| LLM_FALLBACK_MODEL | string | none | Model of the same endpoint used automatically when the main model does not answer |
| LLM_ENDPOINT_URL | string (URL) | none | Endpoint URL (Ollama, Azure, Generic); use the generic provider for OpenAI-compatible endpoints |
| LLM_TEMPERATURE | number | 0.0 | Sampling temperature |
| LLM_TIMEOUT_SECONDS | number | 60.0 | Timeout of an LLM request, in seconds |
| LLM_MAX_RETRIES | number | 2 | Retries of a failed LLM request |
| LLM_HEALTH_CHECK_INTERVAL_SECONDS | number | 300 | Interval of the availability check of the AI configurations in use, in seconds; 0 turns it off |
env-default is managed only through these variables: it is read-only in Settings > AI, and the API refuses to modify or delete it. Values changed in Settings > AI with QALITA 3.2.0 are kept until their variable changes: each of the provider, endpoint, API key, model and fallback model is overwritten at startup only when its variable changed since the previous start. LLM_TEMPERATURE, LLM_TIMEOUT_SECONDS and LLM_MAX_RETRIES are applied at every start, env-default is made active again, and the configuration must keep the name env-default. When no configuration is chosen (Studio default, source AI, agents without a configuration), a team's own active configuration is used before env-default; an agent or a Studio session that selects env-default explicitly keeps using it.
Outbound requests
The backend calls URLs that users enter: the endpoint of an AI configuration (model list, Test, availability check and every AI request) and the endpoint of an MCP server (Test, Refresh Tools and tool calls). So that these URLs cannot reach the backend's own network, the backend refuses an endpoint whose host is, or resolves to, a loopback, private (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, fc00::/7), CGNAT (100.64.0.0/10) or other non-public address. Every request and redirect is checked, and so is the address the connection is opened to. Users see "This endpoint is not allowed"; the host and the address go to the backend log.
| Variable | Type | Default | Description |
|---|
| QALITA_OUTBOUND_ALLOWED_HOSTS | string | none | Hosts the backend may call although they resolve to a non-public address, comma-separated: host, host:port, *.domain (subdomains only), IP address, [IPv6]:port or CIDR range |
The host and port of LLM_ENDPOINT_URL are allowed without being listed, so an env-default configuration on a self-hosted endpoint keeps working.
For example, to allow an Ollama server and a vLLM server on the cluster network:
QALITA_OUTBOUND_ALLOWED_HOSTS=ollama.ai.svc.cluster.local:11434,10.20.0.0/16
Some targets stay refused even when listed: link-local addresses (169.254.0.0/16 and fe80::/10, where cloud metadata services answer), 0.0.0.0/8, multicast addresses, the cloud metadata host names, the Kubernetes API (kubernetes.default and its subdomains, and KUBERNETES_SERVICE_HOST:KUBERNETES_SERVICE_PORT), and the PostgreSQL server and S3 endpoint of the Platform (their host and port, by name and by resolved address). Other ports of these hosts follow the allowlist.
When HTTP_PROXY, HTTPS_PROXY or ALL_PROXY is set, these requests still go through the proxy. The backend checks the target of each request and redirect, but the proxy resolves the name and opens the connection: restrict the proxy's own access to internal networks as well.