]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/nominatim/templates/default/fpm.conf.erb
Use TCP/IP connections for FPM on 14.04
[chef.git] / cookbooks / nominatim / templates / default / fpm.conf.erb
index 78b1c01a523a39ec04af5d54ffff7a01dc58bb67..1aa405f594ebee7f78f3e553b3a6e36178233af4 100644 (file)
@@ -1,7 +1,11 @@
 ; DO NOT EDIT - This file is being maintained by Chef
 
 [<%= @name %>]
+<% if @port -%>
+listen = 127.0.0.1:<%= @port %>
+<% else -%>
 listen = /var/run/php5-fpm-<%= @name %>.sock
+<% end -%>
 
 user = www-data
 group = www-data
@@ -9,8 +13,8 @@ group = www-data
 pm = <%= @pm %>
 pm.max_children = <%= @max_children %>
 pm.start_servers = 20
-pm.min_spare_servers = 20
-pm.max_spare_servers = 30
+pm.min_spare_servers = 10
+pm.max_spare_servers = 20
 pm.max_requests = 1000000
 
 security.limit_extensions = .php .phpx .phpj