fix: add X-Accel-Buffering header to bypass Nginx Proxy Manager buffering for SSE
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 40s

This commit is contained in:
Cauê Faleiros
2026-05-07 13:25:18 -03:00
parent 44028d3b41
commit d3167dbac1

View File

@@ -68,6 +68,7 @@ app.get('/api/stream', (req, res) => {
res.setHeader('Content-Type', 'text/event-stream');
res.setHeader('Cache-Control', 'no-cache');
res.setHeader('Connection', 'keep-alive');
res.setHeader('X-Accel-Buffering', 'no'); // Bypass Nginx Proxy Manager buffering
res.flushHeaders();
// Send initial connection event