Skip to content

Services: render, maps, API and MCP#

The configuration of the services that Empowerment Center offers to the outside or uses from other parts: the headless browser, maps and the routing engine, the query API, the MCP server, embedding and the management port for Prometheus. How they are installed is in Optional services, and how the API, the MCP and embedding are used, in Integrations.

The headless browser#

Property Default What it is
ecenter.render.enabled false (ECENTER_RENDER_ENABLED) Whether the installation has the browser. Off, the formats that need it are not offered.
ecenter.render.browser-url (empty; ECENTER_RENDER_BROWSER_URL) Where Chromium's DevTools protocol listens (http://chromium:9222). A name is valid: ECenter resolves it and connects by its address.
ecenter.render.frontend-url ECENTER_PUBLIC_URL (ECENTER_RENDER_FRONTEND_URL) How Chromium reaches the frontend. It must be something that serves the web application and sends /api/ and /embed/ to the backend, never the backend alone. An internal address is better, as it does not depend on public DNS or on the certificate.
ecenter.render.page-size A4 The PDF paper size (A3, A4, A5, LETTER or LEGAL), which also gives the size of the image.
ecenter.render.landscape true Landscape.
ecenter.render.timeout 60s How long a whole rendering may take.
ecenter.render.queue-wait 30s How long a rendering waits for a free slot.
ecenter.render.max-concurrent 2 The renderings at a time per instance (each one, a browser tab).
ecenter.render.token-ttl 2m How long the single-use token with which the browser opens the document is valid (from 10 s to 2 min).
ecenter.render.session-ttl 5m How long the session that token opens lasts.
ecenter.render.connect-timeout 10s How long to wait for the browser when connecting.
ecenter.render.image-scale 1 The scale of the image in the email body (from 0.5 to 3). With 2 it is twice as sharp and weighs four times as much.

When to change it. If renderings run out of time with large documents (a map with many features, a page with several blocks), raise timeout and the container's memory. If they pile up in the queue, raise max-concurrent and the memory at the same time.

Maps#

Property Default What it is
ecenter.maps.base-map.style (none) The MapLibre style of the base map: the URL of a provider or a self-hosted one (for example, a Protomaps .pmtiles).
ecenter.maps.base-map.style-dark (none) The style for the dark theme. Without it, the dark theme uses style.
ecenter.maps.base-map.tiles (none) A raster tile template (…/{z}/{x}/{y}.png), if there is no style.
ecenter.maps.base-map.tiles-dark (none) Its dark variant. Without it, in dark mode the light ones are shown dimmed.
ecenter.maps.base-map.attribution (none) The attribution text the provider requires.
ecenter.maps.base-map.max-zoom 19 The maximum zoom.
ecenter.maps.routing.provider none The routing engine: none, valhalla or openrouteservice.
ecenter.maps.routing.url (empty) The address of the engine.
ecenter.maps.routing.api-key (empty) The OpenRouteService key.
ecenter.maps.routing.profile (the engine's) The car profile: auto in Valhalla and driving-car in OpenRouteService if not stated.
ecenter.maps.routing.timeout 30s The time limit of each call to the engine.
ecenter.maps.routing.cache-ttl 7d How long a stored response from the engine is valid.
ecenter.maps.routing.max-matrix-targets 500 The destinations of a time and distance matrix.

Without a base map, layers are drawn on a plain background. Add the base map origins to the frontend's ECENTER_CSP_MAP_ORIGINS. The limits of uploaded layers are in Resources.

The query API#

The query API (/api/query/v1) responds with the data the credential's user sees. Its queries are jobs of the API class, 2 at a time by default, so as not to take sessions away from cubes.

Property Default What it is
ecenter.api.enabled true With false, its paths (except whoami) respond 404 API_DISABLED.
ecenter.api.wait 10s How long a request waits for its query if it does not say wait.
ecenter.api.max-wait 30s The most it can ask for with wait. After that, it responds 202 with the query identifier.
ecenter.api.page-size 1000 The rows of a page if limit is not given.
ecenter.api.max-page-size 10000 The most limit can ask for. CSV goes whole.
ecenter.api.max-rows 50000 The rows of a result. Above it, 422 TOO_HEAVY.
ecenter.api.max-cells 2000000 The cells (rows times columns) of a result. Above it, 422 TOO_HEAVY.
ecenter.api.max-estimated-rows 2000000 The rows estimated by the database above which nothing is calculated, even when confirmed (422 TOO_HEAVY).
ecenter.api.max-running-per-user 2 The queries in progress at the same time of a holder, per instance. The next one, 429 TOO_MANY_RUNNING.
ecenter.api.rate 60 The requests per minute of each credential, per instance. Above it, 429 RATE_LIMITED.
ecenter.api.max-retained-cells 10000000 The cells kept by the instance's finished results. When exceeded, the oldest one is discarded (404 RESULT_NOT_FOUND).
ecenter.api.max-retained-per-user 20 The finished results kept for each holder.

The heavy-query warning uses ecenter.cube.warn-rows (100,000 estimated rows), like the cube.

The MCP server#

The MCP server (/api/mcp) lets an AI assistant query the data on behalf of a user. It comes turned off: turning it on is the organization's decision, because what the assistant queries goes out to its AI provider.

Property Default What it is
ecenter.mcp.enabled false (ECENTER_MCP_ENABLED) With false, /api/mcp responds 404 MCP_DISABLED.
ecenter.mcp.wait 20s How long a query waits before returning that it is still running.
ecenter.mcp.rows-per-call 200 The rows of a result in one call if it does not say how many.
ecenter.mcp.max-rows-per-call 1000 The maximum rows of a call. The rest, in pages or as CSV.
ecenter.mcp.rate 120 The calls per minute of each credential, per instance. Above it, 429 RATE_LIMITED.
ecenter.mcp.allowed-origins (none) The accepted Origin values (https://asistente.example.org, or http://localhost:* for any port). A request with another one, 403. Without an Origin header (a client that is not a browser) it is not checked.
ecenter.mcp.allowed-connections (those of the holder) The connections (by their identifier) that can be queried through the MCP. It only restricts.
ecenter.mcp.max-payload 1MB The largest body of a request. Above it, 413 CONTENT_TOO_LARGE.

For assistants to sign in with the organization's account (OAuth), ecenter.security.bearer.oauth.* is configured with the identity provider: see Integrations. The proxy must send /.well-known/oauth-protected-resource/ to the backend, as the frontend does.

Embedding#

Embedding shows documents and portal pages inside other applications, with a token that the host application's server requests.

Property Default What it is
ecenter.embedding.enabled true With false, tokens are neither issued nor redeemed (404), and the embedding page cannot be framed.
ecenter.embedding.token-ttl 5m How long a token lives to be redeemed (from 1 s to 5 min).
ecenter.embedding.access-token-ttl 15m How long each credential of the embedded session lives before it is renewed (from 30 s to 1 h).
ecenter.embedding.refresh-grace 30s How long the previous one remains valid after renewing it.
ecenter.embedding.idle-timeout 30m The inactivity that ends an embedded session (at least 1 min).
ecenter.embedding.max-session-duration 8h The maximum duration of an embedded session (from 5 min to 24 h). Each host application can have a shorter one.
ecenter.embedding.allow-insecure-localhost false Accept http://localhost origins in host applications. Only for development.
ecenter.embedding.index-location classpath:/static/index.html (ECENTER_EMBEDDING_INDEX_LOCATION) Where the backend reads the web application's index.html.
ecenter.embedding.issue-rate 600/min The tokens each host application can request, per instance (<number>/<s, min or h>). Above it, 429 with Retry-After.
ecenter.embedding.retention 30d How long a finished session is kept (at least one day).
ecenter.embedding.maintenance.interval 15m How often finished tokens and sessions are purged.

The management port#

Variable Property Default What it is
ECENTER_MANAGEMENT_PORT management.server.port (empty: off) The port on which /actuator/prometheus, /actuator/health (with the probes) and /actuator/info are served without a session.
management.server.address (all interfaces) The interface the management port is bound to.

With the management port turned on, the application port stops serving /actuator. Without it, /actuator/prometheus responds to nobody, health and the probes respond without a session on the application port and the rest of /actuator requires System administration. The published metrics are in Operations.

Important

The management port responds without a session. Keep it on the internal network only: do not publish it or route it through the proxy.

See also#