mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-20 18:22:25 +00:00
Merge main
This commit is contained in:
commit
4e03e82987
12 files changed
+260
-34
No files matched your search
+10
-1
@@ -2025,7 +2025,13 @@ and follows redirects only on the camera's origin. Catalog image URLs, and
|
||||
redirects on those hosts, are pinned by parsed URL to the agency's image
|
||||
directory. Every `/api/cctv` route refuses cross-site browser requests but
|
||||
accepts forwarding headers, so cameras work behind a reverse proxy; a forwarded
|
||||
request skips the key-bearing Street View fallback and gets the placeholder.
|
||||
request skips the key-bearing Street View fallback and gets the placeholder. The
|
||||
fallback answers only for cameras the server lists, at their catalog position,
|
||||
so position calibration never reaches it. Heading, field of view (clamped to
|
||||
20–120°) and pitch (clamped to −40–20°) come from the request, else from the
|
||||
catalog pose. A bundled seed camera, shown when the server catalog is empty,
|
||||
gets the placeholder. The fallback counts in its own per-IP Google window (see
|
||||
the cost-bearing proxies below).
|
||||
|
||||
The CCTV layer draws only the cameras on or near the screen. Zoomed out, a
|
||||
ground cell with two or more cameras shows one marker at their mean position. A
|
||||
@@ -3579,6 +3585,9 @@ unaffected. `GEV_RATELIMIT_OPENAI_PER_MIN` and `GEV_RATELIMIT_GOOGLE_PER_MIN` ov
|
||||
those; exactly `0` disables the limiter, while a value that cannot be read as a
|
||||
number falls back to the default rather than to unlimited. Over-limit requests
|
||||
receive a sanitized `429` with `Retry-After: 5` and never reach the provider.
|
||||
The CCTV Street View fallback counts in a separate window with the Google cap.
|
||||
An IPv6 /64 counts as one client. Over the cap, a frame gets the placeholder
|
||||
image instead of a `429`.
|
||||
Typed chat (`/api/openai/chat`, `/api/gemini/chat`) counts in its own window,
|
||||
set by `GEV_RATELIMIT_OPENAI_CHAT_PER_MIN` and `GEV_RATELIMIT_GEMINI_CHAT_PER_MIN`.
|
||||
Left unset, each takes its provider's resolved cap — `GEV_RATELIMIT_OPENAI_PER_MIN`
|
||||
|
||||
Reference in new issue
Block a user