mirror of
https://github.com/fawney19/Aether.git
synced 2026-01-03 00:02:28 +08:00
fix: disable nginx buffering for streaming responses
- Add X-Accel-Buffering: no header to prevent nginx from buffering streamed content - Ensures immediate delivery of each chunk without proxy buffering delays - Improves real-time streaming performance and responsiveness - Applies to both production and local Dockerfiles
This commit is contained in:
@@ -71,6 +71,7 @@ RUN printf '%s\n' \
|
|||||||
' proxy_request_buffering off;' \
|
' proxy_request_buffering off;' \
|
||||||
' chunked_transfer_encoding on;' \
|
' chunked_transfer_encoding on;' \
|
||||||
' gzip off;' \
|
' gzip off;' \
|
||||||
|
' add_header X-Accel-Buffering no;' \
|
||||||
' proxy_connect_timeout 600s;' \
|
' proxy_connect_timeout 600s;' \
|
||||||
' proxy_send_timeout 600s;' \
|
' proxy_send_timeout 600s;' \
|
||||||
' proxy_read_timeout 600s;' \
|
' proxy_read_timeout 600s;' \
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ RUN printf '%s\n' \
|
|||||||
' proxy_request_buffering off;' \
|
' proxy_request_buffering off;' \
|
||||||
' chunked_transfer_encoding on;' \
|
' chunked_transfer_encoding on;' \
|
||||||
' gzip off;' \
|
' gzip off;' \
|
||||||
|
' add_header X-Accel-Buffering no;' \
|
||||||
' proxy_connect_timeout 600s;' \
|
' proxy_connect_timeout 600s;' \
|
||||||
' proxy_send_timeout 600s;' \
|
' proxy_send_timeout 600s;' \
|
||||||
' proxy_read_timeout 600s;' \
|
' proxy_read_timeout 600s;' \
|
||||||
|
|||||||
Reference in New Issue
Block a user