From 0306692b31f8cf5f74c511d468e15800dd1f8fc9 Mon Sep 17 00:00:00 2001 From: Mike Dillon Date: Sun, 2 Nov 2014 05:29:32 -0800 Subject: [PATCH] Move gzip_types, access_log, and error_log to http --- nginx.tmpl | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nginx.tmpl b/nginx.tmpl index fa2a7cb..2f686a3 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -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 proxy_http_version 1.1; proxy_buffering off; @@ -61,11 +66,7 @@ upstream {{ $host }} { } server { - gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; - server_name {{ $host }}; - error_log /proc/self/fd/2; - access_log /proc/self/fd/1; location / { proxy_pass http://{{ $host }};