Files
worldmonitor/scripts
Elie Habib 40be228713 fix(cyber): seed cyber threats on Railway + fix Cloudflare 500 errors (#880)
Railway seeding:
- Add full cyber threats seed loop in scripts/ais-relay.cjs (5 IOC sources:
  Feodo, URLhaus, C2IntelFeeds, AlienVault OTX, AbuseIPDB)
- GeoIP hydration via ipinfo.io → freeipapi.com with FIFO-capped cache (2048)
- Writes both RPC cache key (cyber:threats:v2:0:::) and bootstrap key
  (cyber:threats-bootstrap:v2) with 3h TTL
- Register cyberThreats in api/bootstrap.js BOOTSTRAP_CACHE_KEYS + SLOW_KEYS

Cloudflare 500 fixes:
- error-mapper.ts: map SyntaxError → 400 (req.json() on malformed POST body)
- summarize-article.ts: reduce LLM timeout 30s → 25s (was equal to edge budget)
- intelligence/_shared.ts: reduce UPSTREAM_TIMEOUT_MS 30_000 → 25_000
- cyber/_shared.ts: reduce source/geo timeouts and concurrency to fit edge budget
2026-03-03 10:47:37 +04:00
..