Complete reference for all Velaris environment variables. Store these in .env files per service or in your secrets manager. Never commit secrets to version control.
Every case-service variable uses the VELARIS_CASE_ prefix. A handful of platform-wide variables (database and object-storage credentials) use the shorter VELARIS_ prefix — those are listed individually below.
HELIX_ prefixes are gone. Every HELIX_CASE_* and HELIX_* variable was renamed to VELARIS_CASE_* / VELARIS_*. The old names are no longer read at all, and because unknown keys are ignored rather than rejected, a stale .env fails silently: the service starts and every renamed setting quietly falls back to its default. Rename the keys in your .env before upgrading — the values themselves are unchanged.| Variable | Services | Required | Default | Description |
|---|---|---|---|---|
DATABASE_URL | case, auth, ai | Yes | — | PostgreSQL DSN: postgresql://user:pass@host/db |
REDIS_URL | case, auth, ai | Yes | — | Valkey DSN: redis://localhost:6379 |
JWT_SECRET | auth, case, ai | Yes | — | HMAC-SHA256 signing key. Min 32 bytes. Same across all services. |
JWT_ACCESS_TTL | auth | No | 900 | Access token TTL in seconds (15 min) |
JWT_REFRESH_TTL | auth | No | 604800 | Refresh token TTL in seconds (7 days) |
ANTHROPIC_API_KEY | ai | Yes* | — | AI provider API key. *Required for HxNexus when using an external AI backend. Without it, NL queries return 503. |
AI_MODEL | ai | No | claude-sonnet-4-6 | AI model identifier (e.g. claude-sonnet-4-6 for Anthropic, or a local model name for Ollama) |
EMBED_MODEL | ai | No | sentence-transformers/all-MiniLM-L6-v2 | Embedding model for similarity search |
PGVECTOR_ENABLED | ai | No | true | Enable pgvector similarity. Set false if pgvector not installed. |
CORS_ORIGINS | case, auth, ai | No | http://localhost:5173 | Comma-separated allowed CORS origins |
LOG_LEVEL | all | No | info | debug / info / warning / error |
SSO_ENABLED, no SSO_METADATA_URL, no SSO_ACS_URL. Every provider is a row in sso_providers, created under Studio → Admin Console → SSO, and it applies on save with no restart. Setting any SSO_* variable does nothing: the config model uses the VELARIS_CASE_ prefix and ignores unknown keys.The one related setting is the JWT signing material the issued session uses — see VELARIS_CASE_AUTH_SECRET and the RSA key pair above. For provider setup, see SAML SSO Setup and Auth API.
| Variable | Required | Default | Description |
|---|---|---|---|
VITE_API_BASE | No | http://localhost:8200 | API gateway base URL for the browser. In development Studio does not need this — the Vite dev server proxies /api/v1/* to the gateway per studio/vite.config.ts. |
| Variable | Used When | Description |
|---|---|---|
STRIPE_SECRET_KEY | Payments enabled | Stripe API secret key (sk_live_... or sk_test_...) |
STRIPE_WEBHOOK_SECRET | Payments enabled | Stripe webhook signing secret (whsec_...) |
TWILIO_ACCOUNT_SID | SMS enabled | Twilio Account SID |
TWILIO_AUTH_TOKEN | SMS enabled | Twilio Auth Token |
TWILIO_FROM_NUMBER | SMS enabled | Twilio sending phone number (E.164 format) |
ONFIDO_API_TOKEN | Identity enabled | Onfido API token |
ONFIDO_WEBHOOK_TOKEN | Identity enabled | Onfido webhook verification token |
DOCUSIGN_INTEGRATION_KEY | E-Sign enabled | DocuSign Integration Key (client ID) |
DOCUSIGN_ACCOUNT_ID | E-Sign enabled | DocuSign Account ID |
DOCUSIGN_BASE_URI | E-Sign enabled | DocuSign API base URI (e.g. https://na3.docusign.net) |
DOCUSIGN_HMAC_SECRET | E-Sign enabled | DocuSign Connect HMAC secret for webhook verification |
SALESFORCE_CLIENT_ID | CRM enabled | Salesforce Connected App Consumer Key |
SALESFORCE_CLIENT_SECRET | CRM enabled | Salesforce Connected App Consumer Secret |
SALESFORCE_REFRESH_TOKEN | CRM enabled | OAuth2 refresh token (from initial authorisation) |
SALESFORCE_INSTANCE_URL | CRM enabled | e.g. https://mycompany.salesforce.com |
XERO_CLIENT_ID | Invoices enabled | Xero App client ID |
XERO_CLIENT_SECRET | Invoices enabled | Xero App client secret |
XERO_REFRESH_TOKEN | Invoices enabled | OAuth2 refresh token |
XERO_TENANT_ID | Invoices enabled | Xero organisation tenant ID |
AWS_ACCESS_KEY_ID | Doc storage enabled | AWS IAM access key |
AWS_SECRET_ACCESS_KEY | Doc storage enabled | AWS IAM secret key |
AWS_REGION | Doc storage enabled | AWS region (e.g. eu-west-1) |
S3_BUCKET_NAME | Doc storage enabled | S3 bucket for document storage |
S3_ENDPOINT_URL | Non-AWS S3 | Override endpoint for MinIO, Cloudflare R2, etc. |
DOCLING_SERVICE_URL | Doc Intel enabled | Internal Docling OCR service URL |
| Variable | Default | Description |
|---|---|---|
VELARIS_CASE_DATABASE_BACKEND | postgresql | Database dialect. First-party allowlist — postgresql, mysql or mariadb. Unknown values fail closed. |
VELARIS_CASE_DB_PASSWORD | — | Database password when not carried inside the DSN. |
VELARIS_CASE_STORAGE_BACKEND | local | Where documents are kept. local = the folder below (the default for a new install from v3.1.2). s3 = an S3-compatible endpoint you supply, set with VELARIS_CASE_S3_ENDPOINT, _ACCESS_KEY, _SECRET_KEY, _BUCKET and _SECURE (set _SECURE=true for an endpoint on another machine). The older VELARIS_CASE_MINIO_* names are still read, and the S3 name wins if both are set; minio is the same backend under its older name and is what installs created before v3.1.2 have. |
VELARIS_CASE_STORAGE_LOCAL_PATH | ./data/velaris-docs | Local document storage root, relative to the service working directory. setup-velaris.sh writes an absolute path. Include it in backups. |
VELARIS_BUNDLED_MINIO | unset | Whether the MinIO container bundled before v3.1.2 is started. Unset = decided by whether this host already has the container or its volume, so an existing install keeps it and a new one never gets it. 0 = never start it (after moving documents off it); 1 = always. |
VELARIS_CASE_KEK | — | HxVault key-encryption key. Wraps every per-tenant DEK — losing it makes encrypted tenant data unrecoverable. |
VELARIS_GATEWAY_IDENTITY_SECRET | (unset) | Workload identity. The gateway injects this on every request it proxies and each service refuses anything without it, so a process on the host cannot reach a service port directly and skip the gateway. Generate with openssl rand -hex 32. Unset means the check is off, so an upgrade cannot lock an existing install out of its own API. The gateway and the services must be restarted together when it changes; health, readiness and metrics are always exempt. Read by nginx as well as the services, so it carries no VELARIS_CASE_ prefix. |
VELARIS_INTERNAL_TLS_ENABLED | false | Turns on mutual TLS between the gateway and the services. Off by default and deliberately so: everything talks over host loopback behind a loopback-only gateway, so it would encrypt traffic nothing can reach while adding a certificate authority to operate. Run deploy/tls/make-internal-ca.sh first, and set VELARIS_UPSTREAM_SCHEME=https with it — see deploy/tls/README.md. |
VELARIS_INTERNAL_TLS_DIR | deploy/tls/certs | Where the internal certificates live. Gitignored, chmod 700; the private keys never belong in a repository. |
VELARIS_UPSTREAM_SCHEME | http | Substituted into every proxy_pass in the gateway config at container start. Set to https together with VELARIS_INTERNAL_TLS_ENABLED; setting one without the other gives an immediate 502 rather than a silent downgrade to plaintext. |
FORWARDED_ALLOW_IPS | 127.0.0.1 | Which proxy addresses uvicorn will believe when they set X-Forwarded-Proto. The services run with --proxy-headers, so behind a TLS terminator this is what makes server-built absolute URLs (the SCIM base, signed webhook URLs) come out as https:// rather than http://. The default covers a reverse proxy on the host; set it to the proxy's address when it is a container on another network. Never widen it to a host that untrusted clients can reach directly — the header is then anyone's to claim. Read by uvicorn itself, so it carries no VELARIS_CASE_ prefix. |
VELARIS_CASE_VAULT_RESYNC_SECONDS | 30 | How often a worker re-reads the DEK cache, so key rotation propagates across multi-worker deployments. |
| Variable | Default | Description |
|---|---|---|
VELARIS_CASE_MEET_DRIVER | off_platform | off_platform uses Teams/Zoom/Meet connectors; livekit enables embedded video and screen share. |
VELARIS_CASE_LIVEKIT_URL | — | LiveKit WebSocket URL used by the browser. Loopback values are rewritten to the page host so remote browsers connect correctly. |
VELARIS_CASE_LIVEKIT_HTTP_URL | — | LiveKit HTTP URL used server-side for room and egress control. |
VELARIS_CASE_LIVEKIT_API_KEY | — | LiveKit API key. Required when the driver is livekit. |
VELARIS_CASE_LIVEKIT_API_SECRET | — | LiveKit API secret used to mint short-lived room tokens. |
VELARIS_CASE_MEET_TOKEN_TTL | 300 | Room token lifetime in seconds. |
VELARIS_CASE_MEET_GUEST_INVITE_TTL | 900 | Single-use guest invite lifetime in seconds. A calendar invitation overrides it to cover the meeting — 15 minutes is right for a link read out on a call and useless in mail sent a week ahead. |
VELARIS_CASE_PUBLIC_BASE_URL | (unset) | Where Studio is reachable from a browser, e.g. https://velaris.example.com — not this API's address. Guest links point at Studio pages (/meet/join?token=…), so without it a meeting invitation that needs a room link is refused rather than sent with an address the guest cannot open. |
VELARIS_CASE_MEET_RECORDINGS_DIR | — | Directory for sealed recordings. Contents are tenant-DEK encrypted and audit-chain anchored. |
VELARIS_CASE_MEET_ASR_BACKEND | auto | Speech-recognition backend selection for transcripts and live captions. |
VELARIS_CASE_MEET_WHISPER_MODEL | base | Whisper model for post-session sealed transcripts. |
VELARIS_CASE_MEET_ASR_LIVE_MODEL | small | Whisper model for live captions — smaller trades accuracy for latency. |
| Variable | Default | Description |
|---|---|---|
VELARIS_CASE_MCP_AI_TOOLS | true | Expose AI-backed tools such as graph_query alongside the deterministic profile. |
VELARIS_CASE_MCP_RATE_PER_MIN | 30 | Per-user tool-call rate limit. |
VELARIS_CASE_MCP_WRITES_ENABLED | false | Opt in to low-risk write tools. Writes are claim-first idempotent and off by default. |
VELARIS_CASE_MCP_STATEFUL_ENABLED | false | Opt in to case-lifecycle tools. Off by default. |
VELARIS_CASE_MCP_CONFIRM_STATEFUL | true | Route stateful calls through human-confirm proposals instead of executing directly. |
VELARIS_CASE_MCP_PROPOSAL_TTL_MINUTES | 60 | How long an unconfirmed proposal stays actionable. |
VELARIS_CASE_MCP_EXTERNAL_TOKENS_ENABLED | false | Kill switch for scoped external-agent tokens. Off by default. |
VELARIS_CASE_MCP_EXTERNAL_RATE_PER_MIN | 15 | Per-token rate limit, applied per JWT ID. |
VELARIS_CASE_MCP_TOKEN_DEFAULT_TTL_MINUTES | 30 | Default lifetime for a minted external-agent token. |
VELARIS_CASE_MCP_TOKEN_MAX_TTL_MINUTES | 60 | Ceiling on requested token lifetime. |
| Variable | Default | Description |
|---|---|---|
VELARIS_CASE_MARKETPLACE_L2_REGISTRIES | docker.io,ghcr.io | Container registries app images may be pulled from. |
VELARIS_CASE_MARKETPLACE_L2_REQUIRE_SIGNATURE | false | Require a verified image signature before an app container starts. |
VELARIS_CASE_MARKETPLACE_L2_MEM_LIMIT | 512m | Per-container memory ceiling. |
VELARIS_CASE_MARKETPLACE_L2_CPU_QUOTA | 50000 | Per-container CPU quota — 50% of one core. |
VELARIS_CASE_MARKETPLACE_L2_EGRESS | false | Enable the egress host-filter. Off means outbound requests from app containers are refused outright. |
VELARIS_CASE_MARKETPLACE_L2_EGRESS_DIR | — | Working directory for the egress gateway's generated credentials and domain allowlist. |
| Variable | Default | Description |
|---|---|---|
VELARIS_CASE_BOT_RUNNER_ENABLED | false | Run RPA bots on this host. Off by default — the loop starts containers, which is a per-deployment choice. With it off, bots and jobs are still registered and reviewed; they queue visibly. |
VELARIS_CASE_BOT_RUNNER_WORKERS | 2 | This host's concurrency ceiling. A worker exists only while it holds a job, so N workers is N containers. Size it as jobs × average runtime / window, plus headroom. |
VELARIS_CASE_BOT_TENANT_MAX_CONCURRENT | 4 | Concurrent jobs per tenant, beneath the pool ceiling. A bot_tenant_limits row overrides it per tenant; with no row this default still applies, so the cap is never off. |
VELARIS_CASE_BOT_BROWSER_MEM_LIMIT | 1536m | Memory ceiling for the browser profile. Above the Layer-2 default on purpose: a browser's tmpfs counts against its own memory cgroup, so a smaller limit lets a bot be killed by using the scratch space it was given. |
VELARIS_CASE_BOT_RESULT_BASE_URL | http://velaris-broker-gw | Where a bot container posts its result. Must name a container attached to the internal apps network — nothing else resolves there. |
VELARIS_CASE_SCHEDULER_ENABLED | true | Run timed actions. On by default: it writes rows and sends mail rather than starting containers, and nothing fires until a schedule is approved. |
VELARIS_CASE_SCHEDULER_ACTION_TIMEOUT | 300 | Seconds one scheduled action may take before it is abandoned and recorded as failed. Without a bound, one unresponsive third party stalls every other schedule. |
| Variable | Description |
|---|---|
VELARIS_CASE_CHECKOUT_PAYMENT_PROVIDER | Payment provider driving checkout. |
VELARIS_CASE_CHECKOUT_DEFAULT_CURRENCY | Currency used when an order does not specify one. |
VELARIS_CASE_CHECKOUT_ORDER_CASE_TYPE_ID | Case type that orders are raised against. |
VELARIS_CASE_CHECKOUT_HMAC_CLOCK_SKEW_SECONDS | Tolerated clock skew when verifying signed callbacks. |
VELARIS_CASE_CHECKOUT_TOKEN_RATE_LIMIT | Rate limit on checkout token issuance. |
VELARIS_CASE_CHECKOUT_TEST_ORDER_PURGE_DAYS | Retention window for test orders. |
VELARIS_CASE_STOREFRONT_DEFAULT_CURRENCY | Storefront display currency. |
VELARIS_CASE_STOREFRONT_CDN_URL | CDN origin for storefront assets. |
VELARIS_CASE_STOREFRONT_CUSTOM_DOMAINS_ENABLED | Allow tenant-supplied custom domains. |
VELARIS_CASE_STOREFRONT_IMAGE_MAX_MB | Maximum size of a single product image. |
VELARIS_CASE_STOREFRONT_MAX_IMAGES_PER_PRODUCT | Image count ceiling per product. |
VELARIS_CASE_STOREFRONT_MAX_PRODUCTS_PER_STORE | Product count ceiling per store. |
VELARIS_CASE_STOREFRONT_MAX_STORES_PER_TENANT | Store count ceiling per tenant. |
VELARIS_CASE_STOREFRONT_BASKET_ABANDONMENT_HOURS | Idle hours before a basket counts as abandoned. |
All are off unless set. An empty or unreadable value is off and cannot stop a start.
| Variable | Set to | What it does |
|---|---|---|
VELARIS_CASE_HXNEXUS_CHUNK_STRATEGY | structure | Cut documents on headings, paragraphs and sentences. Applies to documents indexed after it is set. |
VELARIS_CASE_HXNEXUS_RERANK | lexical | Blend similarity with a keyword score when answering from documents. Local; no model call. |
VELARIS_CASE_PII_REDACT_TABLE_EXPORTS | true | Mask confirmed personal fields in Database Manager table exports. |
VELARIS_CASE_PII_MASK_AI_EGRESS | true | Mask a case's confirmed personal values in text sent to an external AI provider, and restore them in the answer. |
VELARIS_CASE_RETENTION_ANONYMIZE_CASE_TEXT | true | Retention's anonymise also blanks the case's messages and conversation text. Irreversible. |
VELARIS_FIELD_REQUIRE_SIGNATURE | true | Refuse unsigned syncs and contacts from field nodes. |
In v3.2.0. Unset or empty = the previous behaviour.
| Variable | Set to | What it does |
|---|---|---|
VELARIS_RUN_MODE | production (default) | development | start-velaris.sh mode; development = auto-reload and the Vite dev server, as before (also --dev). |
VELARIS_BACKUP_AGE_RECIPIENT | age public key | Encrypts each backup set. Setup creates a key pair for a new install; the private key is written only to velaris-install-report.md — copy it off, then run backup-velaris.sh --forget-private-key. Unset = the old database-only dump. |
VELARIS_BACKUP_PATH | a mounted folder | Off-box copy of each set (NAS / second disk). |
VELARIS_BACKUP_S3_ENDPOINT, _BUCKET, _ACCESS_KEY, _SECRET_KEY, _REGION, _PREFIX, _SECURE | your S3 service | Off-box copy to object storage. |
VELARIS_BACKUP_KEEP_DAILY / _WEEKLY / _MONTHLY | 7 / 4 / 6 | How many sets are kept. |
VELARIS_BACKUP_TEST_EVERY_DAYS | 7 | How often a set is proven by restoring it into a throwaway database. |
VELARIS_CASE_ALERT_EMAIL, VELARIS_CASE_ALERT_SMTP_HOST, _PORT, _USERNAME, _PASSWORD, _FROM, _TLS | an operator mailbox | Emails backup and update alerts. Unset = no email (Studio and push alerts as before). |
VELARIS_CASE_EVENT_BUS_USERNAME / _PASSWORD | velaris / generated | Kafka authentication. The bundled broker refuses to start without a password; start/setup generate one when the bus is on. |
VELARIS_CASE_EVENT_BUS_TLS_CA | CA file | A broker on another server: SASL_SSL. Empty = as before. |
VELARIS_CASE_REDIS_PASSWORD | generated | Valkey password (Valkey, LiveKit and the platform read the same one). Generated for a new install, or when the cache is turned on. |
VELARIS_EXTERNAL_SERVICES | database,temporal,ai,meetings,events | Parts run on other servers. Unset = all bundled. Each listed part must be secured (below) or start refuses. |
VELARIS_CASE_DATABASE_URL (TLS) | "…?sslmode=verify-full&sslrootcert=/path/ca.pem" | A database on another server: TLS in the URL, in libpq’s words (MySQL/MariaDB: ?ssl_ca=). Quote the value — an unquoted & is refused. |
VELARIS_CASE_TEMPORAL_HOST | host:7233 | Now read by both Temporal clients (before, only TEMPORAL_HOST was). TEMPORAL_HOST still wins. |
VELARIS_CASE_TEMPORAL_TLS_CA / _CERT / _KEY / _SERVER_NAME | PEM files | Mutual TLS to a Temporal on another server. All empty = plaintext, as before. |
VELARIS_CASE_AI_OLLAMA_API_KEY / _TLS_CA | key / CA file | An Ollama on another server, behind a proxy that checks the bearer key. |
VELARIS_PG_CLIENT_IMAGE | postgres:<version>-alpine | The psql/pg_dump image used against an external PostgreSQL newer than 16. |
# Generate a secure 64-character hex secret openssl rand -hex 32 # Example .env snippet JWT_SECRET=a3f9b2e1c4d8f7a2b9e3c1d5f8a4b7e2c9f1a3e8b5c2d4f7a9e1b3c6d8f2a4b7 DATABASE_URL=postgresql://velaris:velaris@localhost/velaris REDIS_URL=redis://localhost:6379 ANTHROPIC_API_KEY=sk-ant-...
.env and .env.* to .gitignore..env file is rendered from OpenBao rather than edited by hand — scripts/secrets-init.sh seeds the store, scripts/secrets-push.sh writes new values into it, and scripts/secrets-render.sh regenerates .env. Editing .env directly means your change is overwritten on the next render.