Skip to Content
OpenPerf

Services

web

The server-rendered dashboard. Port 3000.

The server calls api at API_ORIGIN; the browser calls it directly at PUBLIC_API_ORIGIN. Set the same APP_DASHBOARD_ORIGIN here and in api.

VariableRequiredDefaultDescription
APP_DASHBOARD_ORIGINyesDashboard origin. Same value as in api.
API_ORIGINnohttp://localhost:4000Where the server reaches api.
PUBLIC_API_ORIGINnoAPI_ORIGINWhere browsers reach api, when it differs.
INGEST_ORIGINnohttp://localhost:4100Intake origin shown in project setup snippets.
PUBLIC_INGEST_ORIGINnoINGEST_ORIGINOverrides INGEST_ORIGIN in the snippets.
MCP_ORIGINnohttp://localhost:4500MCP origin shown in the API settings.
PORTno3000HTTP port.

Unlike the other services, web treats an empty origin as unset.

Every response sets X-Frame-Options: DENY and a Content-Security-Policy that allows requests only to the dashboard and the browser's API origin. If browsers reach api at another address than API_ORIGIN, set PUBLIC_API_ORIGIN, or the policy blocks every call. It also sets X-Content-Type-Options: nosniff, Referrer-Policy: strict-origin-when-cross-origin, a Permissions-Policy that turns off the camera, microphone, geolocation, payment and USB, and Strict-Transport-Security for one year on the dashboard host only. A proxy in front of web must keep these headers.

Commands

The image exposes the web command:

CommandWhat it does
webRuns the service.
web healthcheckExits with 0 when /health/live on PORT answers, else 1.

On this page