]> git.openstreetmap.org Git - chef.git/commitdiff
Turn the nginx access log off properly
authorTom Hughes <tom@compton.nu>
Tue, 31 Jul 2018 21:42:26 +0000 (22:42 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 31 Jul 2018 21:45:53 +0000 (22:45 +0100)
cookbooks/nginx/templates/default/nginx.conf.erb

index 26f53e92ecb3e7b17a06acaa21293b3ec44fd7f9..b4254568581010946e24cc2051f759b3e3abaaa8 100644 (file)
@@ -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;