Skip to content

Commit 0306692

Browse files
committed
Move gzip_types, access_log, and error_log to http
1 parent a84aee4 commit 0306692

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

nginx.tmpl

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ map $http_upgrade $proxy_connection {
1212
'' '';
1313
}
1414

15+
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
16+
17+
access_log /proc/self/fd/1;
18+
error_log /proc/self/fd/2;
19+
1520
# HTTP 1.1 support
1621
proxy_http_version 1.1;
1722
proxy_buffering off;
@@ -61,11 +66,7 @@ upstream {{ $host }} {
6166
}
6267

6368
server {
64-
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
65-
6669
server_name {{ $host }};
67-
error_log /proc/self/fd/2;
68-
access_log /proc/self/fd/1;
6970

7071
location / {
7172
proxy_pass http://{{ $host }};

0 commit comments

Comments
 (0)