Move gzip_types, access_log, and error_log to http
This commit is contained in:
parent
a84aee4a84
commit
0306692b31
1 changed files with 5 additions and 4 deletions
|
@ -12,6 +12,11 @@ map $http_upgrade $proxy_connection {
|
||||||
'' '';
|
'' '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
|
||||||
|
|
||||||
|
access_log /proc/self/fd/1;
|
||||||
|
error_log /proc/self/fd/2;
|
||||||
|
|
||||||
# HTTP 1.1 support
|
# HTTP 1.1 support
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_buffering off;
|
proxy_buffering off;
|
||||||
|
@ -61,11 +66,7 @@ upstream {{ $host }} {
|
||||||
}
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
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 }};
|
||||||
error_log /proc/self/fd/2;
|
|
||||||
access_log /proc/self/fd/1;
|
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://{{ $host }};
|
proxy_pass http://{{ $host }};
|
||||||
|
|
Reference in a new issue