1
0
Fork 0
selfhostblocks/php-fpm/mksiteconfig.nix
2023-02-19 20:37:52 -08:00

31 lines
519 B
Nix

{ PHPFPMSiteConfig
}:
{ PHPFPMConfig
, user
, group
, name
, phpConfigDir
, siteName
, siteRoot
, siteSocket
, socketUser
, socketGroup
, dependsOn ? {}
, connectsTo ? {}
}:
rec {
inherit name user group siteSocket;
pkg = PHPFPMSiteConfig {
inherit (PHPFPMConfig) siteConfigDir;
inherit user group;
inherit siteSocket phpConfigDir socketUser socketGroup;
service = siteName;
serviceRoot = siteRoot;
allowedClients = "127.0.0.1";
};
inherit dependsOn connectsTo;
type = "fileset";
}