feat: add standard proxy headers with backward compatibility
Add X-Real-IP, X-Forwarded-Proto, X-Forwarded-Host, and X-Forwarded-Port headers to all proxy hosts for proper client IP detection, HTTPS enforcement, and logging. - New feature flag: enable_standard_headers (default: true for new hosts, false for existing) - UI: Checkbox in proxy host form and bulk apply modal for easy migration - Security: Always configure trusted_proxies when headers enabled - Backward compatible: Existing hosts preserve legacy behavior until explicitly enabled BREAKING CHANGE: New proxy hosts will have standard headers enabled by default. Existing hosts maintain legacy behavior. Users can opt-in via UI. Backend: 98.7% coverage, 8 new tests Frontend: 87.7% coverage, full TypeScript support Docs: Comprehensive migration guide and troubleshooting Closes #<issue-number> (FileFlows WebSocket fix)
This commit is contained in:
@@ -65,6 +65,7 @@ export default function ProxyHosts() {
|
||||
hsts_subdomains: { apply: false, value: true },
|
||||
block_exploits: { apply: false, value: true },
|
||||
websocket_support: { apply: false, value: true },
|
||||
enable_standard_headers: { apply: false, value: true },
|
||||
})
|
||||
const [hostToDelete, setHostToDelete] = useState<ProxyHost | null>(null)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user