rtorrent module: switch from poolConfigs to pools for phpfpm

This commit is contained in:
makefu 2019-10-15 13:59:11 +02:00
parent dc60431d59
commit 0c7b43e760
No known key found for this signature in database
GPG key ID: 36F7711F3FC0F225

View file

@ -333,18 +333,18 @@ let
rutorrent-imp = { rutorrent-imp = {
services.phpfpm = { services.phpfpm = {
# phpfpm does not have an enable option # phpfpm does not have an enable option
poolConfigs = { pools.rutorrent = {
rutorrent = '' user = nginx-user;
user = ${nginx-user} group = nginx-group;
group = ${nginx-group} listen = fpm-socket;
listen = ${fpm-socket} settings = {
listen.owner = ${nginx-user} "pm" = "dynamic";
listen.group = ${nginx-group} "pm.max_children" = 5;
pm = dynamic "pm.start_servers" = 2;
pm.max_children = 5 "pm.min_spare_servers" = 1;
pm.start_servers = 2 "pm.max_spare_servers" = 3;
pm.min_spare_servers = 1 };
pm.max_spare_servers = 3 extraConfig = ''
chdir = / chdir = /
php_admin_value[error_log] = 'stderr' php_admin_value[error_log] = 'stderr'
php_admin_flag[log_errors] = on php_admin_flag[log_errors] = on