- 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.3) Recommended Starting Values (High Traffic Baseline)
These are safe starting points for a busy relay:4) How to Verify Configuration
Health:auth.enabledistruein/health(canonical operator-visible flag —trueonly when a shared secret is configured AND theI_UNDERSTAND_THIS_DISABLES_AUTHbypass is NOT engaged).auth.sharedSecretEnabledis preserved for back-compat./metrics.opensky.hitRatiois stable and high under load./metrics.ais.dropsPerSecstays at0in normal operation./metrics.ais.queueMaxis comfortably belowAIS_UPSTREAM_QUEUE_HARD_CAP.
