From: Tom Hughes Date: Tue, 31 Jul 2018 21:42:26 +0000 (+0100) Subject: Turn the nginx access log off properly X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/e36eac11a3df616d5caae151ce0629e52bdf13a2 Turn the nginx access log off properly --- diff --git a/cookbooks/nginx/templates/default/nginx.conf.erb b/cookbooks/nginx/templates/default/nginx.conf.erb index 26f53e92e..b42545685 100644 --- a/cookbooks/nginx/templates/default/nginx.conf.erb +++ b/cookbooks/nginx/templates/default/nginx.conf.erb @@ -25,6 +25,8 @@ http { '"$http_user_agent" "$http_x_forwarded_for"'; access_log <%= node[:nginx][:access_log] %> main buffer=32k flush=1m; +<% else -%> + access_log off; <% end -%> keepalive_timeout 65;