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.
http://localhost:58080; http://trino:8080 in the compose file
the Trino address
TRINO_SERVICE_USER
eodia-service
the application’s Trino user (catalogs, synchronization), which the OPA endpoint grants everything
TRINO_PASSWORD
—
the Trino password, if your cluster requires authentication
TRINO_LOCALHOST_ALIAS
host.docker.internal in development
the 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
the label of the sign-in button, not translated: e.g. Sign in with SSO
OIDC_SCOPES
openid email profile
the 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_ISSUER
host
the 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
the outgoing server, as an SMTP connection URL: smtps://user:password@smtp.example.com:465
SMTP_FROM
eodia 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.
a Gotenberg service: http://render:3000 with the production compose’s render profile
RENDER_PAGE_URL
PUBLIC_URL
the 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.