Naming Convention

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.

Breaking change in v2.2.0 — the 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.
Environment variables are not feature flags. Modules such as HxMeet, HxReplay and HxDraft are switched on per tenant in the database through the release manifest, not through the environment. The variables below configure a module's behaviour; they do not enable it. See the module's own documentation page for its flag.

Core Variables

VariableServicesRequiredDefaultDescription
DATABASE_URLcase, auth, aiYes—PostgreSQL DSN: postgresql://user:pass@host/db
REDIS_URLcase, auth, aiYes—Valkey DSN: redis://localhost:6379
JWT_SECRETauth, case, aiYes—HMAC-SHA256 signing key. Min 32 bytes. Same across all services.
JWT_ACCESS_TTLauthNo900Access token TTL in seconds (15 min)
JWT_REFRESH_TTLauthNo604800Refresh token TTL in seconds (7 days)
ANTHROPIC_API_KEYaiYes*—AI provider API key. *Required for HxNexus when using an external AI backend. Without it, NL queries return 503.
AI_MODELaiNoclaude-sonnet-4-6AI model identifier (e.g. claude-sonnet-4-6 for Anthropic, or a local model name for Ollama)
EMBED_MODELaiNosentence-transformers/all-MiniLM-L6-v2Embedding model for similarity search
PGVECTOR_ENABLEDaiNotrueEnable pgvector similarity. Set false if pgvector not installed.
CORS_ORIGINScase, auth, aiNohttp://localhost:5173Comma-separated allowed CORS origins
LOG_LEVELallNoinfodebug / info / warning / error

SSO Variables

There are none. SSO is not configured through the environment at all — no 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.

Frontend Variables

VariableRequiredDefaultDescription
VITE_API_BASENohttp://localhost:8200API 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.

HxConnect Integration Variables

VariableUsed WhenDescription
STRIPE_SECRET_KEYPayments enabledStripe API secret key (sk_live_... or sk_test_...)
STRIPE_WEBHOOK_SECRETPayments enabledStripe webhook signing secret (whsec_...)
TWILIO_ACCOUNT_SIDSMS enabledTwilio Account SID
TWILIO_AUTH_TOKENSMS enabledTwilio Auth Token
TWILIO_FROM_NUMBERSMS enabledTwilio sending phone number (E.164 format)
ONFIDO_API_TOKENIdentity enabledOnfido API token
ONFIDO_WEBHOOK_TOKENIdentity enabledOnfido webhook verification token
DOCUSIGN_INTEGRATION_KEYE-Sign enabledDocuSign Integration Key (client ID)
DOCUSIGN_ACCOUNT_IDE-Sign enabledDocuSign Account ID
DOCUSIGN_BASE_URIE-Sign enabledDocuSign API base URI (e.g. https://na3.docusign.net)
DOCUSIGN_HMAC_SECRETE-Sign enabledDocuSign Connect HMAC secret for webhook verification
SALESFORCE_CLIENT_IDCRM enabledSalesforce Connected App Consumer Key
SALESFORCE_CLIENT_SECRETCRM enabledSalesforce Connected App Consumer Secret
SALESFORCE_REFRESH_TOKENCRM enabledOAuth2 refresh token (from initial authorisation)
SALESFORCE_INSTANCE_URLCRM enablede.g. https://mycompany.salesforce.com
XERO_CLIENT_IDInvoices enabledXero App client ID
XERO_CLIENT_SECRETInvoices enabledXero App client secret
XERO_REFRESH_TOKENInvoices enabledOAuth2 refresh token
XERO_TENANT_IDInvoices enabledXero organisation tenant ID
AWS_ACCESS_KEY_IDDoc storage enabledAWS IAM access key
AWS_SECRET_ACCESS_KEYDoc storage enabledAWS IAM secret key
AWS_REGIONDoc storage enabledAWS region (e.g. eu-west-1)
S3_BUCKET_NAMEDoc storage enabledS3 bucket for document storage
S3_ENDPOINT_URLNon-AWS S3Override endpoint for MinIO, Cloudflare R2, etc.
DOCLING_SERVICE_URLDoc Intel enabledInternal Docling OCR service URL

Platform & Storage

VariableDefaultDescription
VELARIS_CASE_DATABASE_BACKENDpostgresqlDatabase 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_BACKENDlocalWhere 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-docsLocal document storage root, relative to the service working directory. setup-velaris.sh writes an absolute path. Include it in backups.
VELARIS_BUNDLED_MINIOunsetWhether 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_ENABLEDfalseTurns 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_DIRdeploy/tls/certsWhere the internal certificates live. Gitignored, chmod 700; the private keys never belong in a repository.
VELARIS_UPSTREAM_SCHEMEhttpSubstituted 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_IPS127.0.0.1Which 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_SECONDS30How often a worker re-reads the DEK cache, so key rotation propagates across multi-worker deployments.

HxMeet — Real-Time Sessions

VariableDefaultDescription
VELARIS_CASE_MEET_DRIVERoff_platformoff_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_TTL300Room token lifetime in seconds.
VELARIS_CASE_MEET_GUEST_INVITE_TTL900Single-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_BACKENDautoSpeech-recognition backend selection for transcripts and live captions.
VELARIS_CASE_MEET_WHISPER_MODELbaseWhisper model for post-session sealed transcripts.
VELARIS_CASE_MEET_ASR_LIVE_MODELsmallWhisper model for live captions — smaller trades accuracy for latency.

HxNexus Operator (MCP)

VariableDefaultDescription
VELARIS_CASE_MCP_AI_TOOLStrueExpose AI-backed tools such as graph_query alongside the deterministic profile.
VELARIS_CASE_MCP_RATE_PER_MIN30Per-user tool-call rate limit.
VELARIS_CASE_MCP_WRITES_ENABLEDfalseOpt in to low-risk write tools. Writes are claim-first idempotent and off by default.
VELARIS_CASE_MCP_STATEFUL_ENABLEDfalseOpt in to case-lifecycle tools. Off by default.
VELARIS_CASE_MCP_CONFIRM_STATEFULtrueRoute stateful calls through human-confirm proposals instead of executing directly.
VELARIS_CASE_MCP_PROPOSAL_TTL_MINUTES60How long an unconfirmed proposal stays actionable.
VELARIS_CASE_MCP_EXTERNAL_TOKENS_ENABLEDfalseKill switch for scoped external-agent tokens. Off by default.
VELARIS_CASE_MCP_EXTERNAL_RATE_PER_MIN15Per-token rate limit, applied per JWT ID.
VELARIS_CASE_MCP_TOKEN_DEFAULT_TTL_MINUTES30Default lifetime for a minted external-agent token.
VELARIS_CASE_MCP_TOKEN_MAX_TTL_MINUTES60Ceiling on requested token lifetime.
Every write path is opt-in. With the defaults above the Operator surface is read-only. Enabling writes or stateful tools is a deliberate act, and external tokens additionally require the kill switch to be on.

Marketplace Execution (Layer 2)

VariableDefaultDescription
VELARIS_CASE_MARKETPLACE_L2_REGISTRIESdocker.io,ghcr.ioContainer registries app images may be pulled from.
VELARIS_CASE_MARKETPLACE_L2_REQUIRE_SIGNATUREfalseRequire a verified image signature before an app container starts.
VELARIS_CASE_MARKETPLACE_L2_MEM_LIMIT512mPer-container memory ceiling.
VELARIS_CASE_MARKETPLACE_L2_CPU_QUOTA50000Per-container CPU quota — 50% of one core.
VELARIS_CASE_MARKETPLACE_L2_EGRESSfalseEnable 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.

Bots & Scheduler

VariableDefaultDescription
VELARIS_CASE_BOT_RUNNER_ENABLEDfalseRun 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_WORKERS2This 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_CONCURRENT4Concurrent 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_LIMIT1536mMemory 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_URLhttp://velaris-broker-gwWhere a bot container posts its result. Must name a container attached to the internal apps network — nothing else resolves there.
VELARIS_CASE_SCHEDULER_ENABLEDtrueRun 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_TIMEOUT300Seconds one scheduled action may take before it is abandoned and recorded as failed. Without a bound, one unresponsive third party stalls every other schedule.
App containers receive no database credentials. They run on an internal network that drops egress by construction; the scoped read-only broker is the only data path. Turning on the egress host-filter permits outbound traffic only to admin-granted domains, through an authenticated and audit-logged gateway.

HxCheckout & HxStorefront

VariableDescription
VELARIS_CASE_CHECKOUT_PAYMENT_PROVIDERPayment provider driving checkout.
VELARIS_CASE_CHECKOUT_DEFAULT_CURRENCYCurrency used when an order does not specify one.
VELARIS_CASE_CHECKOUT_ORDER_CASE_TYPE_IDCase type that orders are raised against.
VELARIS_CASE_CHECKOUT_HMAC_CLOCK_SKEW_SECONDSTolerated clock skew when verifying signed callbacks.
VELARIS_CASE_CHECKOUT_TOKEN_RATE_LIMITRate limit on checkout token issuance.
VELARIS_CASE_CHECKOUT_TEST_ORDER_PURGE_DAYSRetention window for test orders.
VELARIS_CASE_STOREFRONT_DEFAULT_CURRENCYStorefront display currency.
VELARIS_CASE_STOREFRONT_CDN_URLCDN origin for storefront assets.
VELARIS_CASE_STOREFRONT_CUSTOM_DOMAINS_ENABLEDAllow tenant-supplied custom domains.
VELARIS_CASE_STOREFRONT_IMAGE_MAX_MBMaximum size of a single product image.
VELARIS_CASE_STOREFRONT_MAX_IMAGES_PER_PRODUCTImage count ceiling per product.
VELARIS_CASE_STOREFRONT_MAX_PRODUCTS_PER_STOREProduct count ceiling per store.
VELARIS_CASE_STOREFRONT_MAX_STORES_PER_TENANTStore count ceiling per tenant.
VELARIS_CASE_STOREFRONT_BASKET_ABANDONMENT_HOURSIdle hours before a basket counts as abandoned.

Switches Added In v3.1.0

All are off unless set. An empty or unreadable value is off and cannot stop a start.

VariableSet toWhat it does
VELARIS_CASE_HXNEXUS_CHUNK_STRATEGYstructureCut documents on headings, paragraphs and sentences. Applies to documents indexed after it is set.
VELARIS_CASE_HXNEXUS_RERANKlexicalBlend similarity with a keyword score when answering from documents. Local; no model call.
VELARIS_CASE_PII_REDACT_TABLE_EXPORTStrueMask confirmed personal fields in Database Manager table exports.
VELARIS_CASE_PII_MASK_AI_EGRESStrueMask 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_TEXTtrueRetention's anonymise also blanks the case's messages and conversation text. Irreversible.
VELARIS_FIELD_REQUIRE_SIGNATUREtrueRefuse unsigned syncs and contacts from field nodes.

Settings Added in v3.2.0

In v3.2.0. Unset or empty = the previous behaviour.

VariableSet toWhat it does
VELARIS_RUN_MODEproduction (default) | developmentstart-velaris.sh mode; development = auto-reload and the Vite dev server, as before (also --dev).
VELARIS_BACKUP_AGE_RECIPIENTage public keyEncrypts 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_PATHa mounted folderOff-box copy of each set (NAS / second disk).
VELARIS_BACKUP_S3_ENDPOINT, _BUCKET, _ACCESS_KEY, _SECRET_KEY, _REGION, _PREFIX, _SECUREyour S3 serviceOff-box copy to object storage.
VELARIS_BACKUP_KEEP_DAILY / _WEEKLY / _MONTHLY7 / 4 / 6How many sets are kept.
VELARIS_BACKUP_TEST_EVERY_DAYS7How 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, _TLSan operator mailboxEmails backup and update alerts. Unset = no email (Studio and push alerts as before).
VELARIS_CASE_EVENT_BUS_USERNAME / _PASSWORDvelaris / generatedKafka authentication. The bundled broker refuses to start without a password; start/setup generate one when the bus is on.
VELARIS_CASE_EVENT_BUS_TLS_CACA fileA broker on another server: SASL_SSL. Empty = as before.
VELARIS_CASE_REDIS_PASSWORDgeneratedValkey password (Valkey, LiveKit and the platform read the same one). Generated for a new install, or when the cache is turned on.
VELARIS_EXTERNAL_SERVICESdatabase,temporal,ai,meetings,eventsParts 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_HOSThost:7233Now read by both Temporal clients (before, only TEMPORAL_HOST was). TEMPORAL_HOST still wins.
VELARIS_CASE_TEMPORAL_TLS_CA / _CERT / _KEY / _SERVER_NAMEPEM filesMutual TLS to a Temporal on another server. All empty = plaintext, as before.
VELARIS_CASE_AI_OLLAMA_API_KEY / _TLS_CAkey / CA fileAn Ollama on another server, behind a proxy that checks the bearer key.
VELARIS_PG_CLIENT_IMAGEpostgres:<version>-alpineThe psql/pg_dump image used against an external PostgreSQL newer than 16.

Generating JWT_SECRET

# 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-...
Never commit .env files to version control. Add .env and .env.* to .gitignore.
Velaris ships with a secrets manager. In a hardened install the .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.