OpenVortexAI Docs
Deployment

Environment variables

Configure OpenVortexAI by purpose, with production guidance for URLs, auth, data, search, files, and OCR.

The checked-in .env.example for your release is the canonical variable list. This page explains the important groups; it does not override the example file.

Required secrets

VariablePurpose
OPENVORTEXAI_POSTGRES_PASSWORDPassword for the Compose-managed PostgreSQL database.
JWT_SECRETSigns application sessions. Use a long random value.
CREDENTIAL_ENCRYPTION_KEYFernet key used to encrypt stored provider credentials.
BOOTSTRAP_ADMIN_EMAILEmail for the initial administrator.
BOOTSTRAP_ADMIN_PASSWORDInitial administrator password.

Do not rotate CREDENTIAL_ENCRYPTION_KEY without a credential migration plan. Back it up separately from the database.

Identity, ports, and URLs

  • APP_NAME, ENVIRONMENT
  • FRONTEND_PORT, BACKEND_PORT
  • FRONTEND_BIND_HOST, BACKEND_BIND_HOST
  • FRONTEND_BASE_URL, API_BASE_URL, API_INTERNAL_URL
  • NEXT_PUBLIC_API_BASE_URL, NEXT_ALLOWED_DEV_ORIGINS
  • CORS_ORIGINS, CORS_ORIGIN_REGEX

Use ENVIRONMENT=production for Docker production deployments and development for local development. The value is currently a deployment label rather than a broad runtime feature switch.

The public base URLs and CORS values must describe the external browser-visible HTTPS origin, including when Cloudflare or another reverse proxy is in front of the app.

Authentication

  • JWT_ISSUER, JWT_EXP_MINUTES
  • AUTH_LOCAL_ENABLED, AUTH_LOCAL_REGISTRATION_ENABLED
  • AUTH_ENTRA_ENABLED
  • ENTRA_TENANT_ID, ENTRA_CLIENT_ID, ENTRA_CLIENT_SECRET, ENTRA_REDIRECT_URI

Data and storage

  • DATABASE_URL and OPENVORTEXAI_POSTGRES_*
  • OPENVORTEXAI_VALKEY_DATA_PATH
  • APP_FILE_STORAGE_PATH
  • SQLITE_DATA_PATH
  • OPENAI_API_KEY, ANTHROPIC_API_KEY, OPENROUTER_API_KEY
  • AZURE_OPENAI_API_KEY, EMBEDDING_API_KEY
  • SEARCH_BROKER_URL
  • BRAVE_ENABLED, BRAVE_API_KEY
  • TAVILY_ENABLED, TAVILY_API_KEY
  • SEARXNG_ENABLED, SEARXNG_SECRET_KEY, SEARXNG_PUBLIC_BASE_URL

Administrators can also store provider secrets in the application. Environment variables are useful for bootstrap or infrastructure-managed configuration.

Files, RAG, and OCR

  • MAX_UPLOAD_MB, ALLOWED_UPLOAD_EXTENSIONS
  • RAG_FULL_CONTEXT_CHARS, RAG_CONTEXT_CHARS, RAG_EMBED_ON_UPLOAD
  • INDEX_WORKER_THREADS, CHAT_DOCUMENT_LIMIT, DEFAULT_FILE_CONTEXT_MODE
  • DOCUMENT_UNDERSTANDING_MODE, OCR_ENABLED
  • OCR_TESSERACT_LANG, OCR_TESSERACT_CMD, OCR_TESSDATA_PREFIX
  • OCR_POPPLER_PATH, OCR_PDF_MAX_PAGES, OCR_PDF_DPI
  • OCR_MIN_TEXT_CHARS, OCR_MAX_IMAGE_PIXELS, OCR_WORKER_THREADS

Higher OCR and indexing worker counts can saturate CPU. Increase them only after measuring the deployment host.

Security and admin controls

  • SECURITY_CSP_ENABLED, SECURITY_CSP_VALUE
  • SECURITY_HSTS_ENABLED, SECURITY_HSTS_MAX_AGE, SECURITY_HSTS_INCLUDE_SUBDOMAINS
  • RATE_LIMIT_PER_MINUTE, RATE_LIMIT_BURST
  • AUTH_RATE_LIMIT_PER_MINUTE, AUTH_RATE_LIMIT_BURST
  • ADMIN_BLOCK_FILE_VIEW
  • PROMPT_REWRITER_MIN_CHARS, GUIDED_TOUR_ENABLED, WELCOME_WHATS_NEW_MD

On this page