nur/modules/web-apps/wordpress/phpfpm-conf.nix

16 lines
485 B
Nix
Raw Normal View History

{ pkgs, config, phpFpmListen, processSettings, phpPackage, user, group }:
2021-11-22 22:28:17 +01:00
let
lib = pkgs.lib;
in
{
inherit user group phpPackage;
settings = {
"listen.owner" = config.services.nginx.user;
"listen.group" = config.services.nginx.group;
"listen.mode" = 660;
"pm" = "dynamic";
"catch_workers_output" = "yes";
2021-11-22 22:28:17 +01:00
} // lib.mapAttrs' (name: v: lib.nameValuePair "pm.${name}" v) (processSettings.__unfix__ processSettings); # obscure magic.
listen = phpFpmListen;
}