# ShadowBroker — Docker Compose Environment Variables # Copy this file to .env and fill in your keys: # cp .env.example .env # ── Required for backend container ───────────────────────────── # OpenSky Network OAuth2 — REQUIRED for airplane telemetry. # Free registration at https://opensky-network.org/index.php?option=com_users&view=registration # Without these the flights layer falls back to ADS-B-only with major gaps in Africa, Asia, and LatAm. OPENSKY_CLIENT_ID= OPENSKY_CLIENT_SECRET= AIS_API_KEY= # Optional AISHub REST backup when AISStream is silent/offline (same ships layer, ~20 min cadence). # Free registration at https://www.aishub.net/api — paste the account username (not a password). # AISHUB_USERNAME= # Global Fishing Watch — fishing vessel activity events (Fishing Activity map layer). # Free API token from https://globalfishingwatch.org/our-apis/tokens # Without this the fishing_activity layer stays empty. # GFW_API_TOKEN= # Optional tuning — GFW can return 40k+ global events; defaults cap fetch for map paint. # GFW_EVENTS_PAGE_SIZE=500 # GFW_EVENTS_MAX_PAGES=10 # GFW_EVENTS_LOOKBACK_DAYS=7 # GFW_EVENTS_TIMEOUT_S=90 # Windy Webcams global CCTV layer — free key from https://api.windy.com/webcams/docs # WINDY_API_KEY= # Optional CARTO raster-basemap override — free key from https://carto.com/basemaps/apikey # Leave unset for the zero-config OpenFreeMap dark/light basemap. # CARTO_API_KEY= # Telegram OSINT map layer — scrapes public t.me/s channel previews (no bot token). # TELEGRAM_OSINT_ENABLED=true # TELEGRAM_OSINT_CHANNELS=osintdefender,insiderpaper,aljazeeraenglish,nexta_live,war_monitor # TELEGRAM_OSINT_TRANSLATE=true # TELEGRAM_OSINT_TRANSLATE_TO=en # Xquik search for public X posts. Default off. NEWS_ENABLED=false also stops it. # Each poll may consume API credits. Configure one focused search query. # XQUIK_ENABLED=false # XQUIK_API_KEY= # XQUIK_SEARCH_QUERY= # XQUIK_SEARCH_LIMIT=20 # XQUIK_SEARCH_INTERVAL_MINUTES=30 # XQUIK_SEARCH_TIMEOUT_S=10 # Strategic Risk Analytics (experimental derived OSINT — off by default) # GT_ANALYTICS_ENABLED=false # GT_ANALYTICS_PROFILE=lean # On 1 vCPU nodes (fleet VPS), leave disabled or set profile=lean. Scheduled ingest # and Louvain clustering stay off until GT_ANALYTICS_ACK_LOW_CPU=true. # GT_ANALYTICS_ACK_LOW_CPU=false # GT_ANALYTICS_BASE_PRIOR=0.15 # GT_ANALYTICS_HIGH_RISK_THRESHOLD=0.6 # GT_ANALYTICS_SIGNAL_WEIGHTS=payroll_loan=3.0,purge=3.5,troop_movement=3.0 # GT_ANALYTICS_WATCHED_CHANNELS=osintdefender,war_monitor,nexta_live # GT_ANALYTICS_LOUVAIN_INTERVAL_MINUTES=30 # Admin key to protect sensitive endpoints (settings, updates). # Required for operator actions on every connection, including localhost and Docker. # Use at least 32 random characters; enter the key once in Settings to sign in. # npm run dev creates a shared key in backend/.env and frontend/.env.local if missing. ADMIN_KEY= # For a reverse proxy, configure its exact public origin (scheme, host and port). # Pass this to both the frontend and backend. Do not include paths or wildcards. # SHADOWBROKER_ALLOWED_ORIGINS=https://shadowbroker.example # Allow insecure admin access without ADMIN_KEY (local dev only, beyond loopback). # Requires MESH_DEBUG_MODE=true on the backend; do not enable this for normal use. # ALLOW_INSECURE_ADMIN=false # User-Agent for Nominatim geocoding requests (per OSM usage policy). # NOMINATIM_USER_AGENT=ShadowBroker/1.0 (https://github.com/BigBodyCobain/Shadowbroker) # ── Optional ─────────────────────────────────────────────────── # LTA (Singapore traffic cameras) — leave blank to skip # LTA_ACCOUNT_KEY= # NASA FIRMS country-scoped fire data — enriches global CSV with conflict-zone hotspots. # Free MAP_KEY from https://firms.modaps.eosdis.nasa.gov/ # FIRMS_MAP_KEY= # Airframes.io ACARS/VDL datalink (plane dossier messages). Dashboard → API Key. # AIRFRAMES_API_KEY= # Ukraine air raid alerts — free token from https://alerts.in.ua/ # ALERTS_IN_UA_TOKEN= # Optional NUFORC UAP sighting map enrichment via Mapbox Tilequery. # Leave blank to skip this optional enrichment. # NUFORC_MAPBOX_TOKEN= # Optional startup-risk controls. # On Windows, external curl fallback is off by default. Global Incidents always # has the GDELT baseline; the LiveUAMap browser provider is optional enrichment. # Windows asks once when you enable Global Incidents. Declining keeps GDELT on. # Linux/macOS/Docker preserve the existing browser-enrichment default unless # SHADOWBROKER_ENABLE_LIVEUAMAP_SCRAPER is explicitly false. # SHADOWBROKER_ENABLE_WINDOWS_CURL_FALLBACK=false # SHADOWBROKER_ENABLE_LIVEUAMAP_SCRAPER=false # Optional paid/contracted LiveUAMap API provider. Shadowbroker does not require # this. Configure the final HTTPS JSON/GeoJSON endpoint supplied to you. # LIVEUAMAP_API_URL= # LIVEUAMAP_API_KEY= # LIVEUAMAP_API_AUTH_HEADER=Authorization # LIVEUAMAP_API_AUTH_SCHEME=Bearer # LIVEUAMAP_API_TIMEOUT_S=30 # AIS starts by default when AIS_API_KEY is set. Set to 0/false to force-disable. # SHADOWBROKER_ENABLE_AIS_STREAM_PROXY=true # Minimum visible satellite catalog before forcing a CelesTrak refresh. # SHADOWBROKER_MIN_VISIBLE_SATELLITES=350 # Upper bound for TLE fallback satellite search when CelesTrak is unreachable. # SHADOWBROKER_MAX_VISIBLE_SATELLITES=450 # NUFORC fallback uses the Hugging Face mirror when live NUFORC is unavailable. # NUFORC_HF_FALLBACK_LIMIT=250 # NUFORC_HF_GEOCODE_LIMIT=150 # First-paint cache age budgets. These let the map and Global Threat Intercept # paint from the last local snapshot while live feeds refresh in the background. # FAST_STARTUP_CACHE_MAX_AGE_S=21600 # INTEL_STARTUP_CACHE_MAX_AGE_S=21600 # Docker resource tuning. The backend synthesizes large geospatial feeds; keep # this at 4G or higher on hosts that run AIS, OpenSky, CCTV, satellites, and # threat feeds together. Lower caps can cause Docker OOM restarts and empty # slow layers such as news, UAP sightings, military bases, and wastewater. # BACKEND_MEMORY_LIMIT=4G # SHADOWBROKER_FETCH_WORKERS=8 # SHADOWBROKER_SLOW_FETCH_CONCURRENCY=4 # SHADOWBROKER_STARTUP_HEAVY_CONCURRENCY=2 # Infonet bootstrap/sync responsiveness. Defaults favor fast seed failure # detection so stale onion peers do not make the terminal look hung. # MESH_SYNC_TIMEOUT_S=5 # MESH_SYNC_MAX_PEERS_PER_CYCLE=3 # MESH_BOOTSTRAP_SEED_FAILURE_COOLDOWN_S=15 # Google Earth Engine for VIIRS night lights change detection (optional). # pip install earthengine-api # GEE_SERVICE_ACCOUNT_KEY= # Copernicus CDSE — Sentinel-2 imagery (Settings → Imagery, or backend .env). # Free OAuth app at https://dataspace.copernicus.eu/ # SENTINEL_CLIENT_ID= # SENTINEL_CLIENT_SECRET= # Sentinel-2 road corridor freight trends (DrishX engine port — opt-in slow layer). # pip install -e backend[road-corridor] (or uv sync --extra road-corridor) # ROAD_CORRIDOR_SAT_ENABLED=false # ROAD_CORRIDOR_SCHEDULED_PRESETS=laredo_i35 # ROAD_CORRIDOR_MONTHS=2 # ROAD_CORRIDOR_MAX_FRAMES=6 # ROAD_CORRIDOR_REFRESH_HOURS=24 # Override the backend URL the frontend uses (leave blank for auto-detect) # NEXT_PUBLIC_API_URL=http://192.168.1.50:8000 # ── Mesh / Reticulum (RNS) ───────────────────────────────────── # MESH_RNS_ENABLED=false # MESH_RNS_APP_NAME=shadowbroker # MESH_RNS_ASPECT=infonet # MESH_RNS_IDENTITY_PATH= # MESH_RNS_PEERS= # MESH_RNS_DANDELION_HOPS=2 # MESH_RNS_DANDELION_DELAY_MS=400 # MESH_RNS_CHURN_INTERVAL_S=300 # MESH_RNS_MAX_PEERS=32 # MESH_RNS_MAX_PAYLOAD=8192 # MESH_RNS_PEER_BUCKET_PREFIX=4 # MESH_RNS_MAX_PEERS_PER_BUCKET=4 # MESH_RNS_PEER_FAIL_THRESHOLD=3 # MESH_RNS_PEER_COOLDOWN_S=300 # MESH_RNS_SHARD_ENABLED=false # MESH_RNS_SHARD_DATA_SHARDS=3 # MESH_RNS_SHARD_PARITY_SHARDS=1 # MESH_RNS_SHARD_TTL_S=30 # MESH_RNS_FEC_CODEC=xor # MESH_RNS_BATCH_MS=200 # MESH_RNS_COVER_INTERVAL_S=0 # MESH_RNS_COVER_SIZE=64 # MESH_RNS_IBF_WINDOW=256 # MESH_RNS_IBF_TABLE_SIZE=64 # MESH_RNS_IBF_MINHASH_SIZE=16 # MESH_RNS_IBF_MINHASH_THRESHOLD=0.25 # MESH_RNS_IBF_WINDOW_JITTER=32 # MESH_RNS_IBF_INTERVAL_S=120 # MESH_RNS_IBF_SYNC_PEERS=3 # MESH_RNS_IBF_QUORUM_TIMEOUT_S=6 # MESH_RNS_IBF_MAX_REQUEST_IDS=64 # MESH_RNS_IBF_MAX_EVENTS=64 # MESH_RNS_SESSION_ROTATE_S=0 # MESH_RNS_IBF_FAIL_THRESHOLD=3 # MESH_RNS_IBF_COOLDOWN_S=120 # MESH_VERIFY_INTERVAL_S=600 # MESH_VERIFY_SIGNATURES=false # ── Mesh DM Relay ────────────────────────────────────────────── # MESH_DM_TOKEN_PEPPER=change-me # Optional local-dev DM root external assurance bridge. # These stay commented because they are machine-local file paths, not safe global defaults. # MESH_DM_ROOT_EXTERNAL_WITNESS_IMPORT_PATH=backend/../ops/root_witness_receipt_import.json # MESH_DM_ROOT_TRANSPARENCY_LEDGER_EXPORT_PATH=backend/../ops/root_transparency_ledger.json # MESH_DM_ROOT_TRANSPARENCY_LEDGER_READBACK_URI=backend/../ops/root_transparency_ledger.json # ── Self Update ──────────────────────────────────────────────── # Optional ZIP updater digest pin. The updater checks this first, then # backend/data/release_digests.json, then the release SHA256SUMS.txt asset. # MESH_UPDATE_SHA256= # Optional strict nonce-only frontend CSP. Leave unset unless the exact build # has been verified to hydrate cleanly in your deployment. # SHADOWBROKER_STRICT_CSP=1 # ── Wormhole (Local Agent) ───────────────────────────────────── # WORMHOLE_URL=http://127.0.0.1:8787 # WORMHOLE_TRANSPORT=direct # WORMHOLE_SOCKS_PROXY=127.0.0.1:9050 # WORMHOLE_SOCKS_DNS=true # ── AI Voice Agent ───────────────────────────────────────────── # Operator-console voice agent (NARRATE / ACT). OFF by default behind a # two-step opt-in — BOTH flags must be set together. Enabling voice sends # operator speech to the configured OpenAI-compatible endpoint with per-install # attribution; read docs/OUTBOUND_DATA.md before enabling. # 1. VOICE_AGENT_OUTBOUND_ENABLE=allow # 2. VOICE_AGENT_OUTBOUND_ACKNOWLEDGE=true # VOICE_AGENT_OUTBOUND_ENABLE=block # VOICE_AGENT_OUTBOUND_ACKNOWLEDGE=false # # Provider resolution: auto | openai_realtime | compatible_ws | local_text. # "auto" prefers OpenAI realtime when a key is set, else an OpenAI-compatible # gateway (Ollama / LM Studio) via VOICE_COMPAT_BASE_URL, else typed-text-only # degradation. Keys live in Settings → API Keys (persisted to # data/operator_api_keys.env); they are never sent to the browser and every # provider dial is brokered server-side. # VOICE_PROVIDER=auto # VOICE_OPENAI_BASE_URL=https://api.openai.com # VOICE_COMPAT_BASE_URL= # Gemini Live (provider #2 — set VOICE_GEMINI_API_KEY in data/operator_api_keys.env # or the environment). NOTE: Google's free tier may use uploaded audio for product # improvement; paid tiers do not. Audio still goes through the backend broker only. # VOICE_GEMINI_MODEL=gemini-2.0-flash-live-001 # VOICE_GEMINI_BASE_URL=wss://generativelanguage.googleapis.com/ws # VOICE_MODEL_STANDARD=gpt-realtime # VOICE_MODEL_MINI= # VOICE_CHAT_MODEL= # VOICE_REALTIME_VOICE=alloy # Server-authoritative spend rails (USD). "<=0" or "off" disables warn/cap; # daily budget 0 = unlimited (the ledger is still recorded). # VOICE_COST_WARN_USD=2.0 # VOICE_COST_CAP_USD=5.0 # VOICE_DAILY_BUDGET_USD=0.0 # VOICE_MAX_CONCURRENT_SESSIONS=1 # Conservative metering fallback when a provider strips usage from responses. # VOICE_FALLBACK_AUDIO_TOKENS_PER_SEC=50 # Optional local-only speechSynthesis output in degraded text mode (off by # default; on-device/system voices only). # VOICE_LOCAL_TTS_ENABLE=false