]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nginx/templates/default/nginx.conf.erb
Mention and link to the full history planet files.
[chef.git] / cookbooks / nginx / templates / default / nginx.conf.erb
index 8db8b0ffd72b2b65010b9e30db7a414a7272debe..c16aa965020cb002c50eb4f8c32302e5b4e66a12 100644 (file)
@@ -1,7 +1,11 @@
 # DO NOT EDIT - This file is being maintained by Chef
 
-user  nginx;
-worker_processes  1;
+<% if node[:lsb][:release].to_f >= 14.04 -%>
+  user  www-data;
+<% else -%>
+  user  nginx;
+<% end -%>
+worker_processes <%= node['cpu']['total'] %>;
 
 error_log  /var/log/nginx/error.log warn;
 pid        /var/run/nginx.pid;