l websites: use new phpfpm interface
This commit is contained in:
parent
405ffb8078
commit
dfc4a42f69
|
@ -171,10 +171,11 @@ rec {
|
|||
access_log off;
|
||||
'';
|
||||
};
|
||||
services.phpfpm.poolConfigs."${domain}" = ''
|
||||
services.phpfpm.pools."${domain}" = {
|
||||
user = "nginx";
|
||||
group = "nginx";
|
||||
extraConfig = ''
|
||||
listen = /srv/http/${domain}/phpfpm.pool
|
||||
user = nginx
|
||||
group = nginx
|
||||
pm = dynamic
|
||||
pm.max_children = 32
|
||||
pm.max_requests = 500
|
||||
|
@ -188,6 +189,7 @@ rec {
|
|||
catch_workers_output = yes
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
serveWordpress = domains:
|
||||
let
|
||||
|
@ -222,10 +224,11 @@ rec {
|
|||
expires max;
|
||||
'';
|
||||
};
|
||||
services.phpfpm.poolConfigs."${domain}" = ''
|
||||
services.phpfpm.pools."${domain}" = {
|
||||
user = "nginx";
|
||||
group = "nginx";
|
||||
extraConfig = ''
|
||||
listen = /srv/http/${domain}/phpfpm.pool
|
||||
user = nginx
|
||||
group = nginx
|
||||
pm = dynamic
|
||||
pm.max_children = 25
|
||||
pm.start_servers = 5
|
||||
|
@ -238,5 +241,6 @@ rec {
|
|||
catch_workers_output = yes
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user