fix: disable gzip compression in nginx proxy configuration

- Add gzip off directive to prevent nginx from compressing proxied responses
- Ensures stream integrity for chunked transfer encoding
- Applies to both production and local Dockerfiles
This commit is contained in:
fawney19
2025-12-19 02:17:07 +08:00
parent 7e792dabfc
commit 880fb61c66
2 changed files with 2 additions and 0 deletions

View File

@@ -70,6 +70,7 @@ RUN printf '%s\n' \
' proxy_cache off;' \
' proxy_request_buffering off;' \
' chunked_transfer_encoding on;' \
' gzip off;' \
' proxy_connect_timeout 600s;' \
' proxy_send_timeout 600s;' \
' proxy_read_timeout 600s;' \

View File

@@ -74,6 +74,7 @@ RUN printf '%s\n' \
' proxy_cache off;' \
' proxy_request_buffering off;' \
' chunked_transfer_encoding on;' \
' gzip off;' \
' proxy_connect_timeout 600s;' \
' proxy_send_timeout 600s;' \
' proxy_read_timeout 600s;' \