Sigroom Docs

Environment Variables

Each Railway service owns its variables. Shared values may be referenced, but each service must receive the exact keys it validates at startup.

referenceOperatorsVerified 2026-06-01

Common Variables

VariableServicesNotes
NODE_ENVWeb, API, Gateway, Workerproduction on Railway.
PORTWeb, API, Gateway, WorkerInjected by Railway for the running container.
SERVICE_NAMEWeb, API, Gateway, WorkerMust match the package literal.
PUBLIC_WEB_ORIGINWeb, API, Gateway, WorkerBrowser-facing web origin.
API_PUBLIC_URLWeb, API, Gateway, WorkerBrowser-facing API URL.
GATEWAY_PUBLIC_URLWeb, API, Gateway, WorkerBrowser-facing gateway URL.

Production Guards

  • API requires EVENT_RECEIPT_SIGNING_PRIVATE_KEY_PEM in production.
  • Gateway production PEM fields must be PEM encoded.
  • Worker production package scans require PACKAGE_SECURITY_SCANNER_IMAGE_DIGEST.
  • Metrics bearer tokens are required whenever production metrics are enabled.

Source Material

  • ops/railway/env-matrix.md
  • apps/api/src/env.ts
  • apps/gateway/src/env.ts
  • apps/worker/src/env.ts
  • apps/web/src/env.ts