Browse Source

Raise proxy_buffering statement to http level

Mike Dillon 10 năm trước cách đây
mục cha
commit
e1bbe8cde0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      nginx.tmpl

+ 1 - 1
nginx.tmpl

@@ -14,6 +14,7 @@ map $http_upgrade $proxy_connection {
 
 # HTTP 1.1 support
 proxy_http_version 1.1;
+proxy_buffering off;
 proxy_set_header Host $http_host;
 proxy_set_header Upgrade $http_upgrade;
 proxy_set_header Connection $proxy_connection;
@@ -67,7 +68,6 @@ server {
 	gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
 
 	server_name {{ $host }};
-	proxy_buffering off;
 	error_log /proc/self/fd/2;
 	access_log /proc/self/fd/1;