phpfpm: fix permission errors for roundcube (first try)

This commit is contained in:
Daniel Frank 2019-11-29 20:55:13 +01:00
parent ed07963d09
commit 1f058dcc52
Signed by: tokudan
GPG key ID: 063CCCAD04182D32

View file

@ -109,14 +109,16 @@ in
services.phpfpm.pools."${poolName}" = { services.phpfpm.pools."${poolName}" = {
user = "${config.variables.roundcubeUser}"; user = "${config.variables.roundcubeUser}";
group = "${config.variables.roundcubeUser}"; group = "${config.variables.roundcubeUser}";
extraConfig = '' settings = {
pm = dynamic "pm" = "dynamic";
pm.max_children = 75 "pm.max_children" = 75;
pm.min_spare_servers = 5 "pm.min_spare_servers" = 5;
pm.max_spare_servers = 20 "pm.max_spare_servers" = 20;
pm.max_requests = 10 "pm.max_requests" = 10;
catch_workers_output = 1 "catch_workers_output" = 1;
''; "listen.owner" = "nginx";
"listen.group" = "nginx";
};
}; };
users.extraUsers."${config.variables.roundcubeUser}" = { }; users.extraUsers."${config.variables.roundcubeUser}" = { };
users.extraGroups."${config.variables.roundcubeUser}" = { }; users.extraGroups."${config.variables.roundcubeUser}" = { };