projects
/
chef.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7574f99
)
Turn the nginx access log off properly
author
Tom Hughes
<tom@compton.nu>
Tue, 31 Jul 2018 21:42:26 +0000
(22:42 +0100)
committer
Tom Hughes
<tom@compton.nu>
Tue, 31 Jul 2018 21:45:53 +0000
(22:45 +0100)
cookbooks/nginx/templates/default/nginx.conf.erb
patch
|
blob
|
history
diff --git
a/cookbooks/nginx/templates/default/nginx.conf.erb
b/cookbooks/nginx/templates/default/nginx.conf.erb
index 26f53e92ecb3e7b17a06acaa21293b3ec44fd7f9..b4254568581010946e24cc2051f759b3e3abaaa8 100644
(file)
--- 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;