1
0
mirror of https://github.com/amir20/dozzle.git synced 2026-01-01 02:27:25 +01:00

Fixes nginx buffer problem by adding X-Accel-Buffering: no

This commit is contained in:
Amir Raminfar
2020-05-07 15:22:21 -07:00
parent 6c9b6b7768
commit a927ba66a5

View File

@@ -92,7 +92,8 @@ func (h *handler) streamLogs(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/event-stream")
w.Header().Set("Cache-Control", "no-cache")
w.Header().Set("Connection", "keep-alive")
w.Header().Set("Transfer-Encoding", "chunked")
w.Header().Set("X-Accel-Buffering", "no")
log.Debugf("Starting to stream logs for %s", id)
Loop: