Skip to main content
This document covers all environment variables used by the AIS/OpenSky relay path:
  • Railway relay process: scripts/ais-relay.cjs
  • Vercel relay proxy endpoints (legacy): api/opensky.js, api/ais-snapshot.js, api/polymarket.js, api/rss-proxy.js
The api/*.js edge function endpoints listed above are legacy patterns being phased out in favor of the sebuf proto-first approach. See Adding Endpoints for the current recommended pattern.
  • Server relay callers: server/worldmonitor/* handlers
  • Optional browser local fallback callers in src/services/*

1) Minimum Production Setup

Set these before enabling strict relay auth.

Railway (relay)

Vercel (proxy + server functions)

2) Full Parameter Reference

Core Relay/Auth

Relay-Adjacent Feature Flags

OpenSky Upstream Auth

OpenSky Cache/Cardinality Controls

AIS Pipeline Tuning

Rate Limit / Logging / Metrics

Platform-Managed Variables (Do Not Manually Set)

These are used only for production detection and are usually injected by platform/runtime. These are safe starting points for a busy relay:

4) How to Verify Configuration

Health:
Metrics (requires relay auth):
or:
Expected checks:
  • auth.enabled is true in /health (canonical operator-visible flag — true only when a shared secret is configured AND the I_UNDERSTAND_THIS_DISABLES_AUTH bypass is NOT engaged). auth.sharedSecretEnabled is preserved for back-compat.
  • /metrics.opensky.hitRatio is stable and high under load.
  • /metrics.ais.dropsPerSec stays at 0 in normal operation.
  • /metrics.ais.queueMax is comfortably below AIS_UPSTREAM_QUEUE_HARD_CAP.