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:
fawney19
2025-12-19 11:26:15 +08:00
parent 97425ac68f
commit 5c7ad089d2
2 changed files with 2 additions and 0 deletions

View File

@@ -71,6 +71,7 @@ RUN printf '%s\n' \
' proxy_request_buffering off;' \
' chunked_transfer_encoding on;' \
' gzip off;' \
' add_header X-Accel-Buffering no;' \
' proxy_connect_timeout 600s;' \
' proxy_send_timeout 600s;' \
' proxy_read_timeout 600s;' \