Configuration reference

Configuration reference

The server reads its settings from INSIGNAL_* environment variables, or from the matching command-line flags (INSIGNAL_QUERY_TIMEOUT is --query-timeout). insignal-server serve --help lists the flags.

On a CLI install you do not set these yourself. insignal install writes the ones it needs to /opt/insignal/insignal.env and ingest.env, and insignal upgrade writes them again. A setting you add by hand is lost at the next upgrade. Most settings that admins change live in the app, not here.

The server refuses to start without its required secrets, with a secret that is too short, or with an unsafe public address. There are no default secrets.

Server: required

Variable Default Meaning
INSIGNAL_PUBLIC_URL None. Required The origin people open, such as https://insignal.example.com. Only requests from this origin may change data. Plain http is allowed only for localhost, 127.0.0.1 and [::1]. No path, query or wildcard. The CLI sets it from --domain
INSIGNAL_JWT_SECRET None. Required Signs access tokens. At least 32 bytes. Generate one with openssl rand -base64 48. The CLI generates it
INSIGNAL_ENCRYPTION_KEYS None. Required Encrypts saved secrets, such as LLM keys and source passwords: 1:<key>, where the key is 32 random bytes in base64 (openssl rand -base64 32). Comma-separate versions to rotate: add 2:<new key> and keep version 1 until every secret was saved again. This value is the recovery key. The CLI generates it

Server: network and files

Variable Default Meaning
INSIGNAL_LISTEN 127.0.0.1:8080 (the image sets 0.0.0.0:8080) Address and port the server listens on
INSIGNAL_WEB_DIR apps/web/dist (the image sets /app/web) Directory of the built web app
INSIGNAL_DATA_DIR data (the image sets /data) Directory of the app database (insignal.db) and other local state
INSIGNAL_DOCS_DIR docs/dist (the image sets /app/docs) Directory of the built documentation. Without it, the docs pages are missing; the server still starts
INSIGNAL_LITESTREAM litestream beside the server binary The Litestream binary that streams backups to object storage
INSIGNAL_FETCH_ALLOW_HOSTS Empty Hosts inside your network that SQL may read files from, comma-separated, such as files.internal. Without it, SQL reads files and URLs only from public addresses over HTTPS. A listed host may be private and use plain http

Server: license

Variable Default Meaning
INSIGNAL_LICENSE_FILE None Path to a license file. At start the server keeps whichever of this file and the license in its database was issued later. A CLI install loads the license into the database, so it does not set this
INSIGNAL_LICENSE_SERVER https://license.insignal.ai/v1/check-in Where the daily check-in goes. off turns it off, for development and tests. Leave it as is

Server: queries

Variable Default Meaning
INSIGNAL_QUERY_TIMEOUT 120 Seconds a query may run before it is stopped
INSIGNAL_QUERY_MEMORY_MB 1024 Memory one query may use, in MiB. The CLI sizes it to the machine
INSIGNAL_QUERY_THREADS 2 Threads one query may use
INSIGNAL_QUERIES_AT_ONCE 4 Queries that may run at once. Others wait their turn. The CLI sizes it to the machine
INSIGNAL_QUERY_WORKER insignal-query-worker beside the server binary The query worker binary
INSIGNAL_DUCKDB_EXTENSIONS duckdb-extensions beside the worker’s directory Directory of the pinned DuckDB extensions. The worker never downloads one

Server: semantic layer and ingestion

Variable Default Meaning
INSIGNAL_CUBE_URL None Cube’s API. Without it, semantic queries are refused and the semantic model cannot be saved. The CLI sets http://cube:4000
INSIGNAL_CUBE_SECRET None Secret shared with Cube (its CUBEJS_API_SECRET). At least 32 bytes. The CLI generates it
INSIGNAL_CUBE_CALLBACK_HOST host.docker.internal The host Cube calls back on to load the model. The CLI sets server
INSIGNAL_INGEST_TOKEN None The token the ingestion worker shows the server. Without it, table copies wait. The CLI generates it and writes it to both containers

Server: logging

Variable Default Meaning
INSIGNAL_LOG info,tower_http=info Log filter, such as debug or info,insignal_server=debug
INSIGNAL_LOG_FORMAT Plain text (the image sets json) json writes one JSON object per line

Server: LLM provider addresses

Change these only to reach a stand-in for tests. Admins add provider keys in the app; see Add LLM provider keys.

Variable Default
INSIGNAL_ANTHROPIC_BASE_URL https://api.anthropic.com
INSIGNAL_OPENAI_BASE_URL https://api.openai.com
INSIGNAL_GOOGLE_BASE_URL https://generativelanguage.googleapis.com
INSIGNAL_OPENROUTER_BASE_URL https://openrouter.ai/api
INSIGNAL_BEDROCK_BASE_URL None: the region’s AWS endpoints

Server: for tests only

These are hidden from --help. They point the server at stand-ins or shorten waits for tests and demos. Leave them unset.

Variable Default Meaning
INSIGNAL_REFRESH_EVERY 30 Seconds before one chart may run its SQL again on refresh
INSIGNAL_ALERT_EVERY 60 Seconds between checks of charts that have alerts
INSIGNAL_PIPELINE_RETRY_SECONDS 60,300,900 Seconds a failed pipeline run waits before each retry, one retry per number
INSIGNAL_SLACK_API_URL https://slack.com/api Slack’s Web API
INSIGNAL_TEAMS_LOGIN_URL https://login.microsoftonline.com Where Microsoft Teams replies get their token
INSIGNAL_TEAMS_OPENID_URL https://login.botframework.com/v1/.well-known/openidconfiguration Names the keys Teams messages are signed with
INSIGNAL_TEAMS_GRAPH_URL https://graph.microsoft.com Where Insignal reads a Teams channel’s replies
INSIGNAL_FRESHDESK_ALLOW_LOCAL Off Lets a Freshdesk source’s domain be any http:// address
INSIGNAL_JIRA_ALLOW_LOCAL Off Lets a Jira source’s site be any http:// address
INSIGNAL_STRIPE_API_URL None Sends Stripe sources’ calls elsewhere
INSIGNAL_MONDAY_API_URL None Sends Monday sources’ calls elsewhere
INSIGNAL_HUBSPOT_API_URL None Sends HubSpot sources’ calls elsewhere
INSIGNAL_SALESFORCE_API_URL None Sends Salesforce sources’ calls elsewhere
INSIGNAL_BIGQUERY_API_URL None Sends BigQuery sources’ REST calls elsewhere. Works only with the next two
INSIGNAL_BIGQUERY_GRPC None Where BigQuery Storage Read calls go instead, as host:port, over TLS
INSIGNAL_BIGQUERY_CA_FILE None PEM file of the certificate authorities for INSIGNAL_BIGQUERY_GRPC

Ingestion worker

The CLI writes these to /opt/insignal/ingest.env.

Variable Default Meaning
INSIGNAL_SERVER_URL None. Required The server, as the worker reaches it. The CLI sets http://server:8080
INSIGNAL_INGEST_TOKEN None. Required The same token as the server’s INSIGNAL_INGEST_TOKEN
INSIGNAL_INGEST_POLL_MS 2000 Milliseconds to wait when there is no job

CLI and download script

Variable Read by Meaning
INSIGNAL_VERSION The download script The CLI release to install. Default: the latest
INSIGNAL_RECOVERY_KEY insignal restore The old install’s recovery key, instead of --recovery-key
INSIGNAL_STORAGE_SECRET insignal restore The object storage secret, instead of --storage-secret
INSIGNAL_REGISTRY_USER insignal install, insignal restore Only for a private mirror of the images: who signs in to it
INSIGNAL_REGISTRY_PASSWORD insignal install, insignal restore The private mirror’s password or token