Nginx: Difference between revisions
imported>Asymmetric m →Sample setups: fix alignment |
imported>Bachp Update phpfpm config to use settings instead of extraConfig |
||
Line 81: | Line 81: | ||
package = pkgs.mariadb; | package = pkgs.mariadb; | ||
}; | }; | ||
services.phpfpm.pools.mypool | services.phpfpm.pools.mypool = { | ||
user = nobody | user = "nobody"; | ||
pm = dynamic | settings = { | ||
pm = "dynamic"; | |||
"pm.max_children" = 5; | |||
"pm.start_servers" = 2; | |||
"pm.min_spare_servers" = 1; | |||
"pm.max_spare_servers" = 3; | |||
"pm.max_requests" = 500; | |||
} | }; | ||
}; | |||
</syntaxhighlight> | </syntaxhighlight> | ||