Skip to content

Configuration

InsightSpace uses environment variables for deployment settings and read-only files for secrets. The configuration template supplied with your release is the source of truth for the installation.

InsightSpace runs on one hostname. The reverse proxy sends /api/* to the backend and everything else to the frontend, so the browser reaches the API on the same origin as the application.

Setting Purpose
FRONTEND_PUBLIC_ORIGIN Public origin, for example https://insightspace.acme.com; Caddy’s site address, the allowed CORS and passkey origin, and the base of links in emails
BACKEND_BASE_URL Origin the frontend and email confirmation links use for the API; set it to the same value as FRONTEND_PUBLIC_ORIGIN
BACKEND_ALLOWED_HOSTS Hosts accepted by the backend, separated by ;; include the public hostname

The origin must use HTTPS and a DNS hostname, not an IP address (only localhost may use HTTP). Inconsistent values commonly cause cookie, redirect, passkey, and email-link failures.

Setting Purpose
USER_ID, GROUP_ID User and group the backend, extractor, and Caddy containers run as
BACKEND_VERSION, FRONTEND_VERSION, EXTRACTOR_VERSION Image tags; latest when unset
LICENSE_DAILY_CHECK_TIME, LICENSE_DAILY_CHECK_TIME_ZONE Daily license revalidation time (HH:mm) and its IANA time zone
IS_ENTERPRISE_DEPLOYMENT true for an installation with one unlimited account policy and no plan controls
DOCS_URL Documentation link in the sidebar; empty hides it
BRAND_NAME, BRAND_COMPANY, BRAND_LOGO_FILE, BRAND_ICON_FILE Optional white label: set all four, with the logo and icon files in branding/
Setting Purpose
POSTGRES_DB Database name
POSTGRES_USER Database user

The password is read from the postgres_password secret file. The backend refuses to start with pending migrations; the update script applies them with backend --migrate after a backup.

Setting Purpose
S3_ENDPOINT_URL S3 API endpoint; empty only for AWS S3
S3_PUBLIC_ENDPOINT_URL Optional endpoint for the presigned URLs the extractor uses, when it reaches storage at a different address
S3_REGION Storage region
S3_BUCKET Bucket used by InsightSpace
S3_FORCE_PATH_STYLE Enables path-style addressing for compatible services such as Garage

Credentials are read from s3_access_key_id and s3_secret_access_key secret files.

Setting Purpose
EXTRACTOR_BASE_URL Backend-to-extractor address
EXTRACTOR_MAX_CONCURRENCY Extraction slots; a vision or picture-description job takes four
EXTRACTOR_JOB_TIMEOUT_SECONDS Optional time limit per extraction job (default 3600)
EXTRACTOR_MAX_MEMORY_PERCENT Optional share of host or container memory that running extraction jobs may reserve (default 80)
INDEXING_MAX_CHUNK_TOKENS Maximum token target for indexed chunks

The backend and extractor share a bearer token through the extractor_token secret file. More concurrent extractor workers increase throughput but also increase peak memory because each worker loads its own model set. The backend sends at most Indexing__WorkerConcurrency documents at once (default 2); raise it in the server’s docker-compose.override.yml together with EXTRACTOR_MAX_CONCURRENCY.

Setting Purpose
LOCAL_INFERENCE_BASE_URL Endpoint of the agreed local inference service; empty for cloud-only inference
LOCAL_INFERENCE_ENABLE_CHAT Whether local inference is available for chat
LOCAL_INFERENCE_CHAT_ENGINE ollama for every capability, or ds4 for chat only
EMBEDDING_PROVIDER Provider used to create document embeddings
EMBEDDING_MODEL Embedding model identifier
EMBEDDING_DIMENSIONS Vector dimension expected from the embedding model
RERANKING_PROVIDER Provider used to rerank retrieved evidence; empty turns reranking off
RERANKING_MODEL Reranking model identifier

The embedding dimension must match the selected model and the index configuration. Changing an embedding provider, model, or dimension requires a deliberate reindexing plan.

Embedding and reranking providers are ollama-local, dataspace, or infomaniak. Optional chat providers are enabled by a non-empty token file (Anthropic, OpenAI, Google, Infomaniak with INFOMANIAK_PRODUCT_ID, Ollama Cloud, DataSpace). Models come from the release’s model catalog. The optional bearer token for local inference is the ollama_local_token secret file.

Setting Purpose
SMTP_SERVER SMTP server hostname
SMTP_PORT SMTP submission port; the mail service must support STARTTLS
SMTP_USER SMTP account name
SMTP_FROM_EMAIL Sender address
SMTP_DOMAIN Domain used for email behavior and policy

The SMTP password is read from the smtp_password secret file. Confirm that the public origin is correct before testing confirmation or reset links.

Caddy reads its site address from FRONTEND_PUBLIC_ORIGIN and obtains the certificate for it. It, the frontend, and the backend share the Docker network external_net, which must exist before the first start (docker network create external_net). No trusted-proxy setting exists: the backend accepts forwarded headers from whatever connects to it, so publish no backend or frontend port.

The Compose topology expects secret files for:

  • PostgreSQL password;
  • SMTP password;
  • license key;
  • extractor token;
  • S3 access key ID and secret access key;
  • data-protection certificate and its password;
  • Garage RPC secret;
  • local inference token and optional provider tokens; and
  • container-registry username and password, used by the update script.

Every listed file must exist. A required secret that is empty is rejected with an error, not skipped; an empty optional token file turns that provider off. Keep restrictive filesystem permissions and rotate secrets using the release’s operator procedure.

  • Open the application from a normal user device and sign in.
  • Test an invitation or account-recovery email and open its link from the intended network.
  • Upload the tutorial PDF and wait for indexing to complete.
  • Ask a question, open a citation, and export a working document.
  • Confirm that database, source files, extraction artifacts, and protected keys are covered by the agreed backup and restore procedure.

Keep the release version and configuration changes in the operator’s own change record. Use the supplied release procedure for installation and upgrades; an environment file alone is not a complete installation.