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

17 lines
507 B
Nix
Raw Normal View History

2021-11-22 22:19:31 +01:00
{ pkgs, config, phpFpmListen, processSettings, phpPackage }:
2021-11-22 22:28:17 +01:00
let
lib = pkgs.lib;
in
{
inherit (config.services.nginx) user group;
2021-11-22 22:19:31 +01:00
inherit 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;
}