Skip to main content

Environment Variables

All configuration is done via environment variables in the .env file created by the installer.


Authentication

VariableDefaultDescription
JWT_SECRET_KEY(must be set)Secret key for signing JWTs. Change this before deployment. Generate with: openssl rand -hex 32
JWT_ALGORITHMHS256JWT signing algorithm
ACCESS_TOKEN_EXPIRE_SECONDS900Access token lifetime in seconds (default: 15 minutes)
REFRESH_TOKEN_EXPIRE_SECONDS604800Refresh token lifetime in seconds (default: 7 days)
DEFAULT_ADMIN_USERadminUsername for the default admin account created on first boot
DEFAULT_ADMIN_PASSWORDchangemePassword for the default admin account. Change this before deployment.

Database & Cache

VariableDefaultDescription
DATABASE_URL(set by installer)PostgreSQL connection string
REDIS_URL(set by installer)Redis connection string

Privacy

VariableDefaultDescription
RAG_LOG_ANONYMISEtrueAnonymise user identifiers in log output
RAG_LOG_REDACT_QUERIEStrueRedact query text from log output
RAG_CONVERSATION_MAX_AGE_DAYS90Automatically purge conversations older than this many days
RAG_CONVERSATION_MAX_TURNS100Maximum number of turns retained per conversation

Runtime

VariableDefaultDescription
LOG_LEVELINFOLogging verbosity (DEBUG, INFO, WARNING, ERROR)
CONNECTOR_ALLOWED_PATHS/app/docsColon-separated list of container-side paths that connectors are permitted to access. Always include /app/docs.
INDEX_EXTRACTION_WORKERS(set by installer)Number of parallel workers for document text extraction
DOCKER_PORT3000Host port mapped to the UI container