Skip to main content
Relay takes its bootstrap configuration from RELAY_* environment variables, read once at startup; changing one needs a restart. At startup the server also reads a .env file from its working directory, if there is one, and applies each variable that is not already set; RELAY_ENV_FILE names a different file. The operator commands read a file only through RELAY_ENV_FILE (CLI reference). Behaviour that can change while relay runs (proxy mode, payload logging, usage storage, SSO, governance and the rest) lives in settings sections instead, changed through the control API without a restart: see Settings. The images set some variables themselves; see Docker and Kubernetes.

Listeners

Postgres

Valkey and shared state

Secrets and authentication

Single sign-on is configured with the auth:oidc settings section or with WYOLET_AUTH_MODE and the WYOLET_OIDC_* variables; see SSO. Variables a settings section reads secrets from must carry that section’s prefix: RELAY_OIDC_* or WYOLET_OIDC_* for the OIDC client secret, RELAY_PAYLOAD_S3_* for payload-logging S3 credentials.

Catalog and settings seeding

Usage and request storage

Payload logging has no environment variables; it is configured in the payload-logging settings section.

Request handling

Admin UI and CORS

The admin UI fetches these values from GET /config.json on the control listener; they are public. The control listener refuses to be framed (frame-ancestors 'none', X-Frame-Options: DENY) and sends X-Content-Type-Options: nosniff and Referrer-Policy: same-origin on every response. The embedded UI’s Content-Security-Policy allows network calls to its own origin plus the origins of RELAY_CONTROL_API_URL and RELAY_INFERENCE_API_URL; if the UI must reach another host, point one of those variables at it. Images load from the control origin and data: URLs only, so a provider or host icon set to an external URL shows its initial instead.

Diagnostics

Standalone image only

The relay CLI subcommands that talk to a running relay read RELAY_URL, RELAY_ADMIN_TOKEN, RELAY_USER and RELAY_PASSWORD; see CLI.