Skip to content

Configuration reference

Every setting is an environment variable, read at startup. Set them in your .env. This page lists them by purpose with their defaults.

VariableDefaultRole
ANON_DB_KEYrequiredEncryption key for data at rest (the anonymization mapping and linked accounts). Back it up in a vault. If it is lost or changed on an instance that already holds data, the mapping becomes unreadable.
ANON_LANGUAGEfrDefault detection language (fr or en).
ANON_DATA_DIR./dataData directory (SQLite database, encrypted mapping, linked accounts). Mount it as a volume.
ANON_DB_PATH./data/conversations.dbSQLite database path.
ANON_PORT8500Host port exposed by the container (set in the compose file).
VariableDefaultRole
AUTH_BACKENDlocallocal or ldap.
WEBAPP_USERSemptyBootstrap local accounts, format user:password,user2:password2. The first account created becomes admin.
WEBAPP_USER / WEBAPP_PASSWORDadmin / adminSingle-account fallback for a first boot. Change it.
LDAP_SERVER, LDAP_BASE_DN, LDAP_SEARCH_FILTER, LDAP_BIND_DN, LDAP_BIND_PASSWORD, LDAP_USE_SSL, LDAP_USER_DN_TEMPLATE, LDAP_REQUIRE_GROUP_DNemptyLDAP or Active Directory settings, used when AUTH_BACKEND=ldap. See the install guide.
VariableDefaultRole
LICENSE_KEYemptyThe signed license token. Required for the commercial edition.
LICENSE_SERVER_URLemptyLicense server for periodic validation and revocation. Leave empty only for a fully air-gapped instance.
LICENSE_PHONE_HOME_INTERVAL86400Seconds between license checks.
LICENSE_GRACE_PERIOD_DAYS14Network grace after the last successful check before an activated instance suspends.
LICENSE_NO_LICENSE_GRACE_DAYS15Grace before an instance with no license suspends.
VariableDefaultRole
API_KEY_DAILY_QUOTA500Calls per API key per day. 0 means unlimited.
RATE_LIMIT_ENABLEDtrueApplication rate limiting.
RATE_LIMIT_DEFAULT_PER_MIN150Default requests per minute per client.
RATE_LIMIT_AUTH_PER_MIN10Requests per minute on the login path.
RATE_LIMIT_LLM_PER_MIN40Requests per minute on model calls.
LOGIN_IP_MAX_ATTEMPTS20Failed logins per IP before lockout.
COOKIE_SECUREtrueSession cookie sent over HTTPS only, and the signal that enables HSTS. Set to false only for local HTTP testing.
VariableDefaultRole
FILE_UPLOAD_MAX_BYTES20971520Maximum upload size (20 MB).
FILE_OCR_MAX_PAGES30Maximum pages processed by OCR per document.
FILE_OCR_MAX_WORKERSmin(8, CPUs)OCR parallelism.
VariableDefaultRole
MODELS_CACHE_TTL1800Seconds the live model catalog is cached.
EXT_ANON_CACHE_TTL3600Seconds an anonymization session is cached for the extension and API.
EXT_ANON_CACHE_MAX200Maximum cached sessions.