Skip to content

Environment variables

The server (and the worker, if it runs separately) reads its configuration from the environment, once, on startup (apps/server/crates/base/src/config.rs); started from the repository, it also reads the .env then .env.local files at its root, the environment taking precedence. With docker-compose.prod.yml, put them in a .env file next to it: the compose file passes them on to the services. An empty value counts as “not set”.

The default values are the development ones; NODE_ENV=production, which the image sets automatically, changes a few of them.

VariableRole
DOMAINthe public domain, served over HTTPS by Caddy (production compose)
SECRET_KEYthe instance key, 64 hexadecimal characters (openssl rand -hex 32): encrypts the source passwords and embedding secrets
OPA_SECRETthe secret placed in the path of the OPA endpoint called by Trino (openssl rand -hex 24)
DB_PASSWORDthe password of the catalog’s PostgreSQL (production compose)
VariableDefaultRole
NODE_ENVdevelopmentproduction makes SECRET_KEY required and turns off by default the demo, the in-process worker and Trino’s localhost alias
PUBLIC_URLhttp://localhost:3100; in production, https://$DOMAINthe public address: sharing links, OIDC callback; https:// makes the session cookie Secure
SESSION_DAYS14session lifetime, in days
MAX_ROWS2000maximum rows read per interface query
QUERY_TIMEOUT_MS120000maximum duration of a query
CACHE_TTL300result cache lifetime, in seconds, when nothing else sets it
CACHE_STALE_TTL604800seconds an expired result is still shown when a dashboard opens, while it is computed again (0: never)
DEMO1 in development, 0 in productioncreates the demo instance on first start
INPROCESS_WORKER1 in development, 0 in productionruns the job queue inside the server; the image’s all role sets it to 1, and so does the production compose
WORKER_CONCURRENCY3jobs a worker runs at once (syncs, subscriptions, alerts…): a long sync no longer holds back the others
SYNC_CONCURRENCY4queries a sync runs at once on its source (fingerprints, values, structure)
SYNC_QUERY_TIMEOUT_MS120000how long one sync query may take: past it, that schema, table or column is skipped this time and kept as it was, and the report names it
VariableDefaultRole
DATABASE_URLpostgres://eodia:eodia@localhost:55435/eodiathe catalog’s PostgreSQL database; the production compose builds it with DB_PASSWORD
DATABASE_SCHEMAeodiathe catalog schema in that database
VariableDefaultRole
TRINO_URLhttp://localhost:58080; http://trino:8080 in the compose filethe Trino address
TRINO_SERVICE_USEReodia-servicethe application’s Trino user (catalogs, synchronization), which the OPA endpoint grants everything
TRINO_PASSWORD—the Trino password, if your cluster requires authentication
TRINO_LOCALHOST_ALIAShost.docker.internal in developmentthe name through which Trino, in its container, reaches a database declared on localhost
OPA_URL—read by Trino: the OPA endpoint address, http://server:4100/internal/opa/<secret> (the name of the service running the server, port 4100); the compose file builds it
VariableDefaultRole
PASSWORD_LOGIN10 turns off password sign-in: SSO only
OIDC_ISSUER—the OpenID Connect issuer; enables SSO
OIDC_CLIENT_ID—the OIDC client identifier
OIDC_CLIENT_SECRET—its secret, for a confidential client
OIDC_LABELSe connecter avec SSOthe label of the sign-in button, not translated: e.g. Sign in with SSO
OIDC_SCOPESopenid email profilethe requested scopes
OIDC_ATTRIBUTE_CLAIMS—the claims copied into attributes, comma-separated: region,departement
OIDC_GROUPS_CLAIM—the claim that carries the groups to mirror
HOST_SSO_SECRET—the secret shared with a host application: its users sign in through /api/auth/host, and it sets its source with PUT /api/v1/host/source
HOST_SSO_ISSUERhostthe issuer of the host’s tokens, audience of those insights sends it
HOST_ACCESS_URL—where the server asks for a person’s rights on the host’s source: everyone reads there with their own rights at the host
HOST_PUBLIC_URL—the host’s public address, the only one allowed to show the interface in a frame; also read by the web at build time
INSIGHTS_BASE_PATH—the path the interface is served under (/insights): read by the web at build time, or when the image’s web role starts; PUBLIC_URL and RENDER_PAGE_URL then include it, the server always answers under /api

See Single sign-on.

VariableDefaultRole
SMTP_URL—the outgoing server, as an SMTP connection URL: smtps://user:password@smtp.example.com:465
SMTP_FROMeodia insights <noreply@localhost>the sender

Without SMTP, no e-mail is sent: an invitation’s link, like a password reset link (“Reset password” button on a person’s page, for instance administrators only; valid 24 hours, single use), is displayed so it can be passed on by hand, and subscriptions and alerts only go to Teams and Slack. With SMTP, “Forgot password?” on the sign-in page e-mails that link to the person themselves; without SMTP, it tells them to ask an administrator.

VariableDefaultRole
RENDER_URL—a Gotenberg service: http://render:3000 with the production compose’s render profile
RENDER_PAGE_URLPUBLIC_URLthe interface’s address as that service sees it: http://web:3100 in the compose

Without a rendering service, a PDF or image subscription sends the dashboard’s written summary instead (key figures, first rows). The service only opens the print page, with a token that reads one dashboard, as one person, for five minutes.

VariableDefaultRole
AI_PROVIDERanthropic if ANTHROPIC_API_KEY is set, otherwise openai if OPENAI_API_KEY is, otherwise noneanthropic, openai, mistral, openai-compatible or none
AI_API_KEYANTHROPIC_API_KEY, otherwise OPENAI_API_KEYthe provider key
AI_MODELclaude-sonnet-5-5 (Anthropic), mistral-large-latest (Mistral), gpt-4.1 (the others)the model
AI_BASE_URLthe provider’s addressrequired for openai-compatible
AI_HOURLY_QUOTA60copilot messages per person per hour
AI_PROVIDER_SSL_VERIFYtruefalse: the provider’s certificate is not checked — its calls only

See Copilot.

VariableDefaultRead byRole
API_PORT, API_HOST4100, 0.0.0.0the serverwhere it listens: API, OPA endpoint and MCP (/mcp); RUST_PORT and RUST_HOST, from 0.7.0, are still accepted
WEB_PORT3100the image (web role)where the interface listens
API_URLhttp://localhost:4100; http://127.0.0.1:4100 in the imagethe interface (at build time), eodia-mcpthe server address, to which the interface relays /api/*
MCP_URLAPI_URLthe interface (at build time)where the interface relays /mcp: the server, unless the layout is unusual
CATALOG_MIGRATIONS_DIR— (migrations embedded in the binary)the servera migrations folder to apply instead of the binary’s own
MCP_PORT, MCP_HOST4200, 0.0.0.0eodia-mcp (mcp role)where the standalone MCP server listens, over HTTP; not needed for the server’s /mcp
EODIA_URL, EODIA_TOKENhttp://localhost:4100, —eodia-mcp --stdiothe application address and the token

The WITH_MCP variable of earlier versions is no longer read: in all mode, MCP is served on /mcp by the server. See Upgrading to 0.7.

VariableDefaultRole
ACME_EMAIL—the contact address for Let’s Encrypt
IMAGEeodia-insights:latestthe image used for server and web (eodia/insights:0.8.0 for the published image)

eodia insights is free software by Eodia.