openvibers/openvibe.bot 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) (#136)

OP OpenVibers committed 27 days ago · 4190db8147 · 1 file, +7 −0

Changes

ddiff --git a/deploy/nginx/openvibe.bot.conf b/deploy/nginx/openvibe.bot.conf
iindex c4d475f..b250808 100644
---- a/deploy/nginx/openvibe.bot.conf
++++ b/deploy/nginx/openvibe.bot.conf
@@@ -119,6 +119,13 @@ server {
}
# ── Network SSO (sign-in, callback, sign-out) ───────────
++ # 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=ovbot_api burst=30 nodelay;
++ limit_req_status 429;
++ proxy_pass http://127.0.0.1:4630;
++ }
location /auth/ {
limit_req zone=ovbot_auth burst=10 nodelay;
limit_req_status 429;