Caddy: let stppriv's admin gate skip the api rate limit

stppriv's Caddy asks /api/auth/validate-admin for every request it
gates, all from its one LAN IP, which would exhaust the 30/s per-IP api
bucket on a SilverBullet page load. Requests from STPPRIV_LAN_IP to that
one path go straight to the backend. Public traffic always arrives from
cloudflared's address, so it cannot match.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-11-26 13:53:41 +00:00
co-authored by Claude Opus 5.5
parent 46f06a033b
commit 65f2408ad4
5 changed files with 24 additions and 0 deletions
+6
View File
@@ -287,6 +287,12 @@ RECEIPT_WEB_UPSTREAM=100.107.152.119:8765
# `openssl rand -hex 32`. Changing it needs `docker compose up -d caddy`.
RECEIPT_WEB_TOKEN=
# --- stppriv (priv.DOMAIN) ---------------------------------------------------
# The private-tools LXC's LAN IP. Its Caddy asks /api/auth/validate-admin
# directly, not via the tunnel, and requests from this IP skip the api rate
# limit. Blank matches nothing.
STPPRIV_LAN_IP=
# --- Partner Radar (radar.DOMAIN) ----------------------------------------------
# A separate compose project on this host (adamf/cto, `make stpvm`), whose web
# container joins app-network as `radar-web`. Only set this to point