nginx
Keep
X-Forwarded-For/X-Forwarded-Proto headers — ScanDrix uses them for rate limiting (per-client IP) and secure-cookie decisions. If your proxy chains another layer, trust only the immediate hop so clients can’t spoof IPs.Caddy
Webhook path
Your Git provider must reach the ingress path publicly:- No auth middleware may strip the request body or content-type header.
- Signature headers (
X-Hub-Signature-256,X-Gitlab-Token, …) must pass through unmodified. - Do not cache or transform POSTs on this path.
Splitting dashboard from ingress
Higher-security setups serve:scandrix.example.com→ web dashboard (SSO-enforced, VPN or allow-list optional)hooks.scandrix.example.com→ webhook ingress only (public, narrow WAF rules)
.env (PUBLIC_APP_URL, WEBHOOK_BASE_URL).
Checklist
- TLS 1.2+ only, HSTS enabled
-
X-Forwarded-*headers set - Webhook path public, body not buffered
- Upload limit ≥ 8 MB (diff attachments)
- Timeouts ≥ 60 s for streaming dashboard responses
- Access/error logs shipping — webhook delivery debugging starts here
