Switch from deprecated extraConfig to settings for phpfpm.pools.dokuwiki
This commit is contained in:
parent
1185f9bb41
commit
a271fddff8
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue