From e36eac11a3df616d5caae151ce0629e52bdf13a2 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 31 Jul 2018 22:42:26 +0100 Subject: [PATCH] Turn the nginx access log off properly --- cookbooks/nginx/templates/default/nginx.conf.erb | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.43.2