From 683289bf9e353cd02ecdc4ad829a156f2fbaf897 Mon Sep 17 00:00:00 2001 From: Daniel Frank Date: Fri, 29 Nov 2019 21:01:56 +0100 Subject: [PATCH] phpfpm: fix permission errors for postfixadmin (first try) --- postfixadmin.nix | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/postfixadmin.nix b/postfixadmin.nix index 02e7e52..7a8a2c1 100644 --- a/postfixadmin.nix +++ b/postfixadmin.nix @@ -84,17 +84,15 @@ in services.phpfpm.pools."${phppoolName}" = { user = "${pfaUser}"; group = "${pfaGroup}"; - 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 - php_admin_value[upload_max_filesize] = 42M - php_admin_value[post_max_size] = 42M - php_admin_value[memory_limit] = 128M - php_admin_value[cgi.fix_pathinfo] = 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"; + }; }; }