Switch from deprecated extraConfig to settings for phpfpm.pools.dokuwiki

This commit is contained in:
June 2024-07-15 02:44:37 +02:00 committed by echtnurich
parent 827b6b41c1
commit 4e095c1a85
Signed by: echtnurich
SSH key fingerprint: SHA256:1eIkxME0VPeXC2WMl9Haus+q0SLFymSAWU7f6Z+A8Aw

View file

@ -57,16 +57,16 @@ in {
; Checked with NixOS 23.11 on 2024-05-02. ; Checked with NixOS 23.11 on 2024-05-02.
extension = ${pkgs.phpExtensions.bz2}/lib/php/extensions/bz2.so extension = ${pkgs.phpExtensions.bz2}/lib/php/extensions/bz2.so
''; '';
extraConfig = '' settings = {
listen.owner = ${config.services.nginx.user}; "listen.owner" = "${config.services.nginx.user}";
listen.group = ${config.services.nginx.group}; "listen.group" = "${config.services.nginx.group}";
pm = dynamic "pm" = "dynamic";
pm.max_children = 32 "pm.max_children" = 32;
pm.start_servers = 2 "pm.start_servers" = 2;
pm.min_spare_servers = 2 "pm.min_spare_servers" = 2;
pm.max_spare_servers = 4 "pm.max_spare_servers" = 4;
pm.max_requests = 500 "pm.max_requests" = 500;
''; };
}; };
services.nginx = { services.nginx = {