fix: 兼容反代和 Docker 客户端 IP 解析

This commit is contained in:
Jlypx
2026-07-19 19:41:01 +08:00
parent d4b9797ff7
commit 732aeef880
9 changed files with 165 additions and 20 deletions
+1 -1
View File
@@ -571,7 +571,7 @@ Additional security-related options are available in `config.yaml`:
- `security.response_headers.enabled` to enable configurable response header filtering (disabled uses default allowlist)
- `security.csp` to control Content-Security-Policy headers
- `billing.circuit_breaker` to fail closed on billing errors
- `server.trusted_proxies` to enable X-Forwarded-For parsing
- `server.trusted_proxies` to configure forwarded-IP trust for security-sensitive paths (local/container proxy ranges are trusted by default; replace them with exact remote proxy CIDRs when needed)
- `turnstile.required` to require Turnstile in release mode
**⚠️ Security Warning: HTTP URL Configuration**