openvibers/openvibe.trade Commits

nginx: GET /auth/me on the API zone (it runs on every page load; the sign-in flow's 10/min showed a visitor opening a dozen pages as signed out, the browser check's 429s) (#77)

OP OpenVibers committed 27 days ago · 2d1aaf7342 · 1 file, +6 −0

Changes

ddiff --git a/deploy/nginx/openvibe.trade.conf b/deploy/nginx/openvibe.trade.conf
iindex cf15707..3714f92 100644
---- a/deploy/nginx/openvibe.trade.conf
++++ b/deploy/nginx/openvibe.trade.conf
@@@ -80,6 +80,12 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
# ── Network SSO session endpoints (strict) ──────────────
++ # GET /auth/me runs on every page load (the navbar's session): the API zone, not the sign-in flow's 10/min,
++ # or a visitor who opens a dozen pages in a minute shows as signed out (the browser check's 429s, 2026-10-17).
++ location = /auth/me {
++ limit_req zone=ovtrade_api burst=30 nodelay;
++ proxy_pass http://127.0.0.1:4860;
++ }
location /auth/ {
limit_req zone=ovtrade_auth burst=10 nodelay;
proxy_pass http://127.0.0.1:4860;