1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2024-11-25 05:16:30 +00:00

Raise proxy_buffering statement to http level

This commit is contained in:
Mike Dillon 2014-10-25 22:12:03 -07:00
parent 5b9e8c4554
commit e1bbe8cde0

View File

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