Environment variables#
The reference for the environment variables of an Empowerment Center installation: the mandatory ones, the backend ones, the frontend ones and those used by the sample Docker Compose installation. With Docker Compose they go in deploy/.env; without containers, in the service's environment file.
Any other property in the following pages of the reference can also be given as a variable, with the rules in Properties and variables.
The essential ones#
Without these, the backend does not start:
| Variable | What it is |
|---|---|
ECENTER_DB_URL |
The own database, as a JDBC URL: jdbc:postgresql://<server>:5432/<db> or, in Oracle, jdbc:oracle:thin:@//<server>:1521/<service>. The engine of the own database comes from it: there is no other property that says it (see The own database in Oracle). deploy/compose.yaml sets it. |
ECENTER_DB_USER |
The user of the own database. deploy/compose.yaml sets it (ecenter). |
ECENTER_DB_PASSWORD |
The password of the own database. With deploy/compose.yaml, both the database container (when creating it) and the backend use it. |
ECENTER_SECRETS_KEY |
The 256-bit AES key, in Base64, that encrypts the secrets stored in the own database. It is generated with openssl rand -base64 32. See The secrets key. |
Without ECENTER_DB_URL, ECENTER_DB_USER or ECENTER_DB_PASSWORD, the backend log says which ones are missing. Without ECENTER_SECRETS_KEY, it says «Falta la clave de cifrado de secretos» (the secrets encryption key is missing); if it is not in Base64 or is not 32 bytes, it says that too.
And these do not prevent it from starting, but always set them:
| Variable | What it is |
|---|---|
ECENTER_PUBLIC_URL |
The public address, as users type it and without a trailing slash: https://ecenter.example.org. See The public address. |
ECENTER_ADMIN_LOGIN, ECENTER_ADMIN_PASSWORD |
The first administrator. They are only used if the own database has no user: without them, nobody can sign in to a new installation. See The first administrator. |
TZ |
The time zone of the installation (Europe/Madrid). See The backend ones. |
The public address#
ECENTER_PUBLIC_URL is the address with which users reach ECenter. It is used for:
- the links in emails (subscriptions, data alerts, notifications); without it, emails go without links and the “link” format of subscriptions is not offered;
- the audience of the MCP server and the issuer of the tokens the installation signs;
- by default, the address through which the headless browser reaches the frontend (
deploy/compose.yamlchanges it for the internal one).
The identity provider's return addresses do not come from it, but from the original request that the backend rebuilds with the X-Forwarded-* headers (see The reverse proxy and TLS).
The backend ones#
| Variable | Default | What it is | When to change it |
|---|---|---|---|
TZ |
The system's (UTC in a container) | The time zone of the installation. It governs the dates in PDFs, the schedules of tasks, subscriptions and alerts, the dates in emails and the days of the console activity. | Always: set it (Europe/Madrid). |
ECENTER_SESSION_TIMEOUT |
30m |
How long an inactive session lasts. | If the organization's policy requires another. |
ECENTER_SESSION_MAX_DURATION |
12h |
The maximum duration of a session since signing in, even if it is still being used. 0, no maximum. |
Same. |
ECENTER_MAX_UPLOAD |
100MB |
The largest file that can be uploaded (external data, geographic layers, metadata packages). | If larger files are uploaded. Raise the frontend's ECENTER_CLIENT_MAX_BODY_SIZE as well. |
ECENTER_MAIL_FROM |
(empty: the mail server's) | The sender of the email that does not give its own. | Set it if you configure email. |
SPRING_MAIL_HOST and the other SPRING_MAIL_* |
(no email) | The mail server. | See Mail and notifications. |
ECENTER_INSTANCE_NAME |
The machine name (ecenter-1 in deploy/compose.yaml) |
The name of the instance in operational alerts, task runs and deliveries. On startup, each instance takes as interrupted whatever of its own was left in progress. | With several instances, a different, fixed one for each. |
ECENTER_I18N_DEFAULT_LANGUAGE |
es |
The language of the installation: es, en, ca, eu or gl. It is that of the sign-in screen the first time it is opened in a browser, that of the users who have not chosen one and that of embedded content that does not ask for another. Another value prevents the backend from starting. |
If most users work in another language. See The language. |
ECENTER_LOGIN_HELP |
(empty) | The help text of the sign-in screen, up to 500 characters. | To give the support contact. |
ECENTER_MANAGEMENT_PORT |
(empty: off) | The management port for Prometheus and the probes. | If you collect metrics with Prometheus. See Services. |
ECENTER_MCP_ENABLED |
false |
The MCP server for AI assistants. | If the organization decides to use it. See Integrations. |
ECENTER_RENDER_ENABLED |
false |
The headless browser. | If you install it. See Optional services. |
ECENTER_RENDER_BROWSER_URL |
(empty; http://chromium:9222 in deploy/compose.yaml) |
Where Chromium's DevTools protocol listens. | If you install it another way. |
ECENTER_RENDER_FRONTEND_URL |
ECENTER_PUBLIC_URL (http://frontend:8080 in deploy/compose.yaml) |
How Chromium reaches the frontend. | Same. |
ECENTER_EMBEDDING_INDEX_LOCATION |
classpath:/static/index.html (http://frontend:8080/index.html in deploy/compose.yaml) |
Where the backend reads the web application's index.html for embedding: a URL or a file (file:/srv/ecenter/frontend/index.html). |
Without containers or with another web server. |
ECENTER_MAPS_ROUTING_PROVIDER |
none |
The routing engine: none, valhalla or openrouteservice. |
If you install one. |
ECENTER_MAPS_ROUTING_URL |
(empty; http://valhalla:8002 in deploy/compose.yaml) |
The address of the routing engine. | Same. |
ECENTER_MAPS_ROUTING_APIKEY |
(empty) | The OpenRouteService key. | If you use its cloud service. |
ECENTER_FILE_EXPORTS_ROOTS |
(empty: no folders) | The server folders in which workbooks can leave their files, absolute and separated by commas, as the backend sees them. Without any, the server folder is not offered as a destination. | If workbooks export files. See File export. |
ECENTER_FILE_EXPORTS_ALLOWED_HOSTS |
(empty: any except the machine itself, link-local and broadcast addresses) | The servers that remote file export destinations (Windows shared folders, SFTP, S3 and Azure Blob) can connect to: names (also *.domain), addresses or ranges (10.20.0.0/16), separated by commas. With any, only those. |
To limit where destinations connect, or to allow one of the forbidden ones. See Remote destinations. |
ECENTER_DATASOURCE_POOL_MAXSIZE |
5 |
The sessions with the database of each client connection. | See Resources. |
ECENTER_JOBS_MAXQUEUEDPERUSER |
100 |
The jobs of a user that can wait in the queue of a class. | See Resources. |
SPRING_DATASOURCE_HIKARI_MAXIMUM_POOL_SIZE |
10 |
The backend's connections to the own database. | See Resources. |
SERVER_PORT |
8080 |
The backend port. | Without containers, if 8080 is taken. |
SERVER_FORWARD_HEADERS_STRATEGY |
(no value; framework in deploy/compose.yaml) |
For the backend to read the proxy's X-Forwarded-* headers. |
Without containers, set it to framework whenever there is a proxy in front. |
JAVA_TOOL_OPTIONS |
-XX:MaxRAMPercentage=75 -XX:+ExitOnOutOfMemoryError in the image |
JVM options. | Without a container memory limit, to set the heap (-Xmx3g). If you change it, keep -XX:+ExitOnOutOfMemoryError. |
The frontend ones#
| Variable | Default | What it is |
|---|---|---|
ECENTER_BACKEND_URL |
http://backend:8080 |
The backend, without a trailing slash. |
ECENTER_RESOLVER |
127.0.0.11 |
The DNS with which the backend name is resolved: Docker's or the cluster's. |
ECENTER_CLIENT_MAX_BODY_SIZE |
100m |
The largest body accepted. At least ECENTER_MAX_UPLOAD. |
ECENTER_BEHIND_PROXY |
off |
on if there is another proxy in front that terminates TLS. |
ECENTER_CSP_MAP_ORIGINS |
(empty) | The origins of the base map for the content policy. |
ECENTER_CSP_IDP_ORIGINS |
(empty) | The origins of the identity provider for the SAML exit. |
The details are in The reverse proxy and TLS.
The Docker Compose ones#
deploy/compose.yaml reads these variables from deploy/.env for itself:
| Variable | Default | What it is |
|---|---|---|
ECENTER_HTTP_PORT |
8080 |
The port of the machine on which the frontend is published. |
ECENTER_BACKEND_IMAGE |
ecenter/backend:8.0.0 |
The backend image, if it comes from a registry. |
ECENTER_FRONTEND_IMAGE |
ecenter/frontend:8.0.0 |
The frontend image. |
ECENTER_ENV_FILE |
.env |
The environment file the backend receives. |
COMPOSE_PROFILES |
(none) | The optional services that start: render, routing or render,routing. |
ECENTER_BACKEND_MEMORY |
4g |
The backend's memory limit. The JVM takes 75 %. |
ECENTER_DB_MEMORY |
1g |
That of the own database. |
ECENTER_FRONTEND_MEMORY |
256m |
That of the frontend. |
ECENTER_RENDER_MEMORY |
2g |
That of the headless browser, with its shared memory. |
ECENTER_ROUTING_MEMORY |
6g |
That of the routing engine. |
ECENTER_ROUTING_TILE_URLS |
Spain and the Canary Islands (Geofabrik) | The OpenStreetMap extracts that Valhalla downloads the first time. |
ECENTER_ROUTING_THREADS |
2 |
The threads with which Valhalla builds its graph. |
A sample .env#
# Mandatory
ECENTER_DB_PASSWORD=change-this-key
ECENTER_SECRETS_KEY=<the output of openssl rand -base64 32>
ECENTER_PUBLIC_URL=https://ecenter.example.org
ECENTER_ADMIN_LOGIN=admin
ECENTER_ADMIN_PASSWORD=change-this-long-key
TZ=Europe/Madrid
# The frontend, behind the organization's proxy
ECENTER_HTTP_PORT=8080
ECENTER_BEHIND_PROXY=on
# Email
SPRING_MAIL_HOST=smtp.example.org
SPRING_MAIL_PORT=587
SPRING_MAIL_USERNAME=ecenter
SPRING_MAIL_PASSWORD=change-this-key
SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH=true
SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE=true
ECENTER_MAIL_FROM=ecenter@example.org
# Headless browser
COMPOSE_PROFILES=render
ECENTER_RENDER_ENABLED=true
# Others
ECENTER_LOGIN_HELP=Trouble signing in? Call extension 1234