nginx: access_log add required buffer= param
authorGrant Slater <git@firefishy.com>
Mon, 4 Nov 2019 14:35:33 +0000 (14:35 +0000)
committerGrant Slater <git@firefishy.com>
Mon, 4 Nov 2019 14:35:33 +0000 (14:35 +0000)
cookbooks/nginx/templates/default/nginx.conf.erb

index de53cc39d6ac867e170ff22f8223a85badb55898..7422f2f2041d60301f17fb0e177dba248984c074 100644 (file)
@@ -25,7 +25,7 @@ http {
                       '$status $body_bytes_sent "$http_referer" '
                       '"$http_user_agent" "$http_x_forwarded_for"';
 
-    access_log  <%= node[:nginx][:access_log] %>  main flush=1m;
+    access_log  <%= node[:nginx][:access_log] %>  main buffer=256k flush=1m;
 <% else -%>
     access_log  off;
 <% end -%>