diff --git a/mastus/ttrss.nix b/mastus/ttrss.nix index 68dfd80..5da7ab0 100644 --- a/mastus/ttrss.nix +++ b/mastus/ttrss.nix @@ -3,6 +3,7 @@ containers.ttrss = { config = { users.extraUsers.ttrss = {}; + users.extraGroups.ttrss = {}; services.postgresql = { enable = true; @@ -33,23 +34,21 @@ }; services.phpfpm = { - extraConfig = '' - error_log = /var/log/phpfpm.log - log_level = notice - ''; - - poolConfigs = { - ttrss = '' - listen = 9000 - user = ttrss - pm = dynamic - pm.max_children = 75 - pm.start_servers = 10 - pm.min_spare_servers = 5 - pm.max_spare_servers = 20 - pm.max_requests = 500 - catch_workers_output = 1 - ''; + pools = { + ttrss = { + user = "ttrss"; + group = "ttrss"; + settings = { + listen = "9000"; + pm = "dynamic"; + "pm.max_children" = 75; + "pm.start_servers" = 10; + "pm.min_spare_servers" = 5; + "pm.max_spare_servers" = 20; + "pm.max_requests" = 500; + catch_workers_output = 1; + }; + }; }; };