Files
worldwideview/.env.example
T
silvertakana 522e976739 feat: multi-account OpenSky credential rotation
- New credentials.ts: pool manager that parses OPENSKY_CREDENTIALS env
  var (comma-separated clientId:clientSecret pairs), tracks per-credential
  tokens and credits, auto-rotates when credits drop below threshold or
  on 429 responses. Falls back to legacy OPENSKY_CLIENTID/CLIENTSECRET.
- Simplified auth.ts to thin wrapper over credential pool
- Removed single-credential fields from state.ts (now per-credential)
- rate-limit.ts stores credits per-credential via pool
- polling.ts rotates credentials on 429
- Updated .env.example with OPENSKY_CREDENTIALS documentation
- Added credentials.test.ts (8 tests) and updated rate-limit.test.ts
2026-03-09 15:42:54 +13:00

26 lines
890 B
Bash

# Environment Variables Example
# Cesium Ion Access Token (Required for terrain and default imagery)
# Get your token at https://ion.cesium.com/
NEXT_PUBLIC_CESIUM_ION_TOKEN=
# Bing Maps API Key (Optional, for high-res imagery)
# Get your key at https://www.bingmapsportal.com/
NEXT_PUBLIC_BING_MAPS_KEY=
# Supabase Configuration (Required for persistence and historical data)
# Found in your Supabase Project Settings > API
NEXT_PUBLIC_SUPABASE_URL=
NEXT_PUBLIC_SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=
# OpenSky Network — multi-account credential rotation
# Comma-separated clientId:clientSecret pairs. Each account = 4,000 credits/day (~4.2h at 15s polling).
# Example: OPENSKY_CREDENTIALS=acct1-id:acct1-secret,acct2-id:acct2-secret
OPENSKY_CREDENTIALS=
# Legacy single-credential fallback (used if OPENSKY_CREDENTIALS is empty)
# OPENSKY_CLIENTID=
# OPENSKY_CLIENTSECRET=