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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user