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:
@@ -73,6 +73,7 @@ services:
|
||||
- PYTHON_PORT=${PYTHON_PORT:-8000}
|
||||
# A dead port by default, so /receipt/ reads "offline".
|
||||
- RECEIPT_WEB_UPSTREAM=${RECEIPT_WEB_UPSTREAM:-127.0.0.1:9}
|
||||
- STPPRIV_LAN_IP=${STPPRIV_LAN_IP:-192.0.2.1}
|
||||
- RECEIPT_WEB_TOKEN=${RECEIPT_WEB_TOKEN:-}
|
||||
# The adamf/cto stack's web container; "offline" while that stack is down.
|
||||
- RADAR_UPSTREAM=${RADAR_UPSTREAM:-radar-web:80}
|
||||
|
||||
Reference in New Issue
Block a user