From 026e8e7f95e8b3afa37f9cd05119c904a1c79b9b Mon Sep 17 00:00:00 2001 From: yixingj Date: Fri, 1 Sep 2017 18:44:13 +0800 Subject: [PATCH] disable nginx buffer When host in low disk status, enable the buffer will cause upload error. --- make/common/templates/nginx/nginx.http.conf | 9 ++------- make/common/templates/nginx/nginx.https.conf | 9 ++------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/make/common/templates/nginx/nginx.http.conf b/make/common/templates/nginx/nginx.http.conf index e101c3fa8..2c15e7342 100644 --- a/make/common/templates/nginx/nginx.http.conf +++ b/make/common/templates/nginx/nginx.http.conf @@ -59,13 +59,8 @@ http { # When setting up Harbor behind other proxy, such as an Nginx instance, remove the below line if the proxy already has similar settings. proxy_set_header X-Forwarded-Proto $$scheme; - - proxy_buffer_size 4k; - proxy_buffers 4 32k; - proxy_busy_buffers_size 64k; - proxy_temp_file_write_size 64k; - client_body_temp_path /tmp/nginx_client_body_temp; - proxy_temp_path /tmp/nginx_proxy_temp; + proxy_buffering off; + proxy_request_buffering off; } location /service/ { diff --git a/make/common/templates/nginx/nginx.https.conf b/make/common/templates/nginx/nginx.https.conf index f4dc325a3..3dc5bf224 100644 --- a/make/common/templates/nginx/nginx.https.conf +++ b/make/common/templates/nginx/nginx.https.conf @@ -78,13 +78,8 @@ http { # When setting up Harbor behind other proxy, such as an Nginx instance, remove the below line if the proxy already has similar settings. proxy_set_header X-Forwarded-Proto $$scheme; - - proxy_buffer_size 4k; - proxy_buffers 4 32k; - proxy_busy_buffers_size 64k; - proxy_temp_file_write_size 64k; - client_body_temp_path /tmp/nginx_client_body_temp; - proxy_temp_path /tmp/nginx_proxy_temp; + proxy_buffering off; + proxy_request_buffering off; } location /service/ {