Merge pull request #2973 from reasonerjt/master

Enable buffer on nginx
This commit is contained in:
Daniel Jiang 2017-08-07 12:48:24 +08:00 committed by GitHub
commit 0b2d7ae6c2
2 changed files with 9 additions and 5 deletions

View File

@ -59,9 +59,11 @@ http {
# When setting up Harbor behind other proxy, such as an Nginx instance, remove the below line if the proxy already has similar settings. # 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_set_header X-Forwarded-Proto $$scheme;
proxy_buffering off; proxy_buffer_size 4k;
proxy_request_buffering off; proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
} }
location /service/ { location /service/ {

View File

@ -79,8 +79,10 @@ http {
# When setting up Harbor behind other proxy, such as an Nginx instance, remove the below line if the proxy already has similar settings. # 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_set_header X-Forwarded-Proto $$scheme;
proxy_buffering off; proxy_buffer_size 4k;
proxy_request_buffering off; proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
} }
location /service/ { location /service/ {