X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/3b9afa09fa710d6845058d1befe1d75587992a53..4905aae927c0671d2b8e5b5c9665122fb39b0877:/cookbooks/nominatim/templates/default/fpm.conf.erb diff --git a/cookbooks/nominatim/templates/default/fpm.conf.erb b/cookbooks/nominatim/templates/default/fpm.conf.erb index 78b1c01a5..386769efc 100644 --- a/cookbooks/nominatim/templates/default/fpm.conf.erb +++ b/cookbooks/nominatim/templates/default/fpm.conf.erb @@ -1,7 +1,13 @@ ; 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 +listen.owner = www-data +listen.group = www-data +<% end -%> user = www-data group = www-data @@ -9,8 +15,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.max_requests = 1000000 +pm.min_spare_servers = 10 +pm.max_spare_servers = 20 +pm.max_requests = 10000 security.limit_extensions = .php .phpx .phpj