Skip to main content

Frontend​

VariableTypeDefaultUsage
QALITA_API_URLstring (URL)http://backend:3080Base backend URL called by the frontend
NEXT_TELEMETRY_DISABLEDboolean (0/1)1Disables Next.js telemetry
NEXT_WEBPACK_USEPOLLINGbooleanfalseEnables Webpack polling when inotify is unavailable (e.g., containers)
NEXT_SHARP_PATHstring (path)/app/node_modules/sharpPath to Sharp binary for image optimization
NODE_ENVstring (development/production/test)productionNext.js execution mode

Backend​

Database​

VariableTypeDefaultUsage
DB_USERstringnonePostgreSQL username
DB_PASSWORDstringnonePostgreSQL password
DB_HOSTstring (host)nonePostgreSQL server address
DB_NAMEstringnonePostgreSQL database name
DB_PORTnumber5432PostgreSQL server port

Mail​

VariableTypeDefaultUsage
MAIL_USERNAMEstringnoneSMTP username
MAIL_PASSWORDstringnoneSMTP password
MAIL_FROMstring (email)noneSender email address
MAIL_PORTnumbernoneSMTP server port
MAIL_SERVERstring (host)noneSMTP server address
MAIL_STARTTLSboolean (true/false)trueEnables STARTTLS
MAIL_SSL_TLSboolean (true/false)falseUses implicit SSL/TLS
MAIL_FROM_NAMEstringFastAPIDisplayed sender name
MAIL_USE_CREDENTIALSboolean (true/false)trueSends credentials to SMTP server
MAIL_VALIDATE_CERTSboolean (true/false)trueValidates TLS certificates

QALITA​

VariableTypeDefaultUsage
QALITA_ENVstring (dev/staging/prod)devBackend execution environment
QALITA_SECRET_KEYstringnoneSecret key for signing tokens
QALITA_ALGORITHMstringHS256Token signing algorithm
QALITA_API_TOKEN_EXPIRE_MINUTESnumber10080API token lifetime (minutes), enforced since 3.2.2: see token lifetime
QALITA_ACCESS_TOKEN_EXPIRE_MINUTESnumber15Session token lifetime (minutes), enforced since 3.2.2: see token lifetime
QALITA_ADMIN_USERNAMEstringnoneInitial admin username
QALITA_ADMIN_PASSWORDstringnoneInitial admin password
QALITA_DEBUGbooleanfalseEnables backend debug mode
QALITA_AUTH_MODEstring (table/ldap/azure)tableAuthentication mode
QALITA_DEFAULT_ROLEstring (role name)publicRole given on joining a team (and LDAP fallback): public/datascientist/datamanager/dataengineer
QALITA_API_MODEstring (dual/legacy/v3)dualAPI surfaces served: dual (v1/v2 + v3, required by a 3.x frontend), legacy (v1/v2 only), v3
QALITA_RETENTION_LOG_HOURSnumber720Log retention period (hours)
QALITA_MISSED_RUN_GRACE_SECONDSnumber3600Delay after a routine's scheduled time before the run counts as missed (seconds)
QALITA_MISSED_RUN_MAX_QUEUE_SECONDSnumber43200Extra wait for a routine queued on a busy online worker before it counts as missed (seconds)
QALITA_ORGANIZATION_NAMEstringnoneOrganization name displayed/notifications
QALITA_LICENSE_KEYstringnoneRegistry password (license key)
QALITA_LICENSE_USERstringnoneRegistry username (license holder)
QALITA_LICENSE_REGISTRY_URLstring (URL)https://registry.qalita.ioLicense registry used for validation
QALITA_PUBLIC_PLATFORM_URLstring (URL)nonePublic platform URL; SSO callbacks send the browser back to it
QALITA_PUBLIC_DOC_URLstring (URL)nonePublic documentation URL
QALITA_PUBLIC_API_URLstring (URL)nonePublic API URL, as the browser reaches it: see Redirect URLs
QALITA_LICENCE_SCOPEstringnoneLicense 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​

VariableTypeDefaultUsage
LDAP_SERVERstring (URL/host)noneLDAP server
LDAP_SEARCH_USERstring (simple DN)noneLDAP search account
LDAP_SEARCH_PASSWORDstringnoneLDAP search account password
LDAP_DNstring (base DN)noneBase DN for searches (e.g., dc=example,dc=com)
LDAP_GROUP_DNstring (base DN)LDAP_DNBase DN for group searches (e.g., ou=groups,dc=example,dc=com)
LDAP_SEARCH_USER_FILTERstring (LDAP filter)noneFilter to find users, with exactly one %s (the login)
LDAP_ROLE_MAPPINGstring (role:group_dn;role:group_dn)noneGroup-to-application-role mapping, not JSON: see LDAP role mapping
LDAP_SEARCH_GROUP_FILTERstring (LDAP filter)noneFilter to retrieve groups, with %s/{uid} or {dn}: see LDAP group lookup
LDAP_TLSbooleannoneEnables TLS for LDAP

Microsoft (Azure Entra) OIDC / SSO​

VariableTypeDefaultUsage
MICROSOFT_CLIENT_IDstringnoneAzure Entra application (client) ID (OIDC)
MICROSOFT_CLIENT_SECRETstringnoneAzure Entra client secret
MICROSOFT_TENANT_IDstringnoneAzure Entra tenant ID or domain; common, organizations, consumers or empty make the application multi-tenant: see Accounts and identities
MICROSOFT_REDIRECT_URLstring (URL)noneBackend callback, ending with /saml/callback: see Redirect URLs
MICROSOFT_SCOPESstring (space-separated)openid profile emailRequested OIDC scopes; openid and profile are always added

Google OIDC / SSO​

VariableTypeDefaultUsage
GOOGLE_OAUTH_CLIENT_IDstringnoneGoogle OAuth client ID
GOOGLE_OAUTH_CLIENT_SECRETstringnoneGoogle OAuth client secret
GOOGLE_OAUTH_REDIRECT_URLstring (URL)noneBackend callback, ending with /google/callback: see Redirect URLs
GOOGLE_OAUTH_SCOPESstring (space-separated)openid profile emailRequested 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.

S3​

VariableTypeDefaultUsage
QALITA_S3_URLstring (URL)noneS3-compatible endpoint (e.g., MinIO, AWS S3)
QALITA_S3_KEY_IDstringnoneS3 access key ID
QALITA_S3_KEY_SECRETstringnoneS3 secret key

Cache​

VariableTypeDefaultUsage
REDIS_SERVERstring (host)localhostRedis server address
REDIS_PORTnumber6379Redis port
REDIS_PASSWORDstringnoneRedis password (optional)

LLM​

VariableTypeDefaultUsage
LLM_PROVIDERstringnoneProvider of the env-default AI configuration created at startup (openai, anthropic, mistral, ollama, openrouter, generic…)
LLM_API_KEYstringnoneAPI key of that configuration
LLM_MODELstringnoneMain model
LLM_FALLBACK_MODELstringnoneModel of the same endpoint used automatically when the main model does not answer
LLM_ENDPOINT_URLstring (URL)noneEndpoint URL (Ollama, Azure, Generic); use the generic provider for OpenAI-compatible endpoints
LLM_TEMPERATUREnumber0.0Sampling temperature
LLM_TIMEOUT_SECONDSnumber60.0Timeout of an LLM request, in seconds
LLM_MAX_RETRIESnumber2Retries of a failed LLM request
LLM_HEALTH_CHECK_INTERVAL_SECONDSnumber300Interval 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.

VariableTypeDefaultDescription
QALITA_OUTBOUND_ALLOWED_HOSTSstringnoneHosts 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.