|
|
6cd64295d2
|
Add separate SSE backend for secure Server-Sent Events support
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 52s
Creates two backends per domain:
1. Regular backend - Uses http-server-close for better security and
connection management (prevents connection exhaustion attacks)
2. SSE backend - Optimized for Server-Sent Events with:
- no option http-server-close (allows long-lived connections)
- option http-no-delay (immediate data transmission)
- 6-hour timeouts (supports long streaming sessions)
Frontend routing logic:
- Detects SSE via Accept: text/event-stream header or ?action=stream param
- Routes SSE traffic to SSE-optimized backend
- Routes regular HTTP traffic to standard secure backend
This approach provides full SSE support while maintaining security for
regular HTTP traffic (preventing DDoS/connection flooding attacks).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-26 13:48:24 -08:00 |
|