fix(adsbdb): 720/min by default, configurable, and a 429 is not an answer

The cap becomes GEV_RATELIMIT_ADSBDB_PER_MIN with a 720 default, read
through resolvePerMinuteCap like the other cost limiters (0 disables, an
unreadable value takes the default). On a 429 both enrichment queues make
the key askable again after the error's retry-after, so the next request
for that aircraft is dispatched instead of dropped.
This commit is contained in:
daikaginza committed 2026-10-23 12:39:32 +07:00
1 parent b83e1a2c98
commit 80b2ead154
7 files changed
+78 -31

No files matched your search

+6
View File
@@ -49,6 +49,12 @@ GOOGLE_MAPS_SERVER_API_KEY=
# Quotas).
# GEV_RATELIMIT_GOOGLE_PER_MIN=60 # uncomment to tighten from the default 120
# Optional: per-IP requests/minute for the keyless adsbdb aircraft-enrichment
# proxy (/api/adsbdb). DEFAULTS TO 720: one tab's two enrichment queues
# (Flights and Local ADS-B) top out at 600. Same rules as above: 0 disables,
# an unreadable value takes the default.
# GEV_RATELIMIT_ADSBDB_PER_MIN=720
# Optional: Google Photorealistic 3D Tiles through Cesium ion, Bing world
# imagery, and Cesium World Terrain. The free Community plan is for eligible
# personal/non-commercial use and has quotas; check current Cesium terms. A