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