From 1f058dcc52f388e2f59da2c9985d89af33de41d3 Mon Sep 17 00:00:00 2001 From: Daniel Frank Date: Fri, 29 Nov 2019 20:55:13 +0100 Subject: [PATCH] phpfpm: fix permission errors for roundcube (first try) --- roundcube.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/roundcube.nix b/roundcube.nix index acd129f..5d90b90 100644 --- a/roundcube.nix +++ b/roundcube.nix @@ -109,14 +109,16 @@ in services.phpfpm.pools."${poolName}" = { user = "${config.variables.roundcubeUser}"; group = "${config.variables.roundcubeUser}"; - extraConfig = '' - pm = dynamic - pm.max_children = 75 - pm.min_spare_servers = 5 - pm.max_spare_servers = 20 - pm.max_requests = 10 - catch_workers_output = 1 - ''; + settings = { + "pm" = "dynamic"; + "pm.max_children" = 75; + "pm.min_spare_servers" = 5; + "pm.max_spare_servers" = 20; + "pm.max_requests" = 10; + "catch_workers_output" = 1; + "listen.owner" = "nginx"; + "listen.group" = "nginx"; + }; }; users.extraUsers."${config.variables.roundcubeUser}" = { }; users.extraGroups."${config.variables.roundcubeUser}" = { };