1
0
Fork 0
selfhostblocks/php-fpm/mksiteconfig.nix

25 lines
448 B
Nix
Raw Normal View History

{ PHPFPMSiteConfig
}:
{ PHPFPMConfig
, PHPFPMService
, name
, siteName
, siteRoot
, socketUser
, socketGroup
}:
rec {
inherit name;
siteSocket = "/run/php-fpm/${name}.sock";
pkg = PHPFPMSiteConfig {
inherit (PHPFPMConfig) siteConfigDir;
inherit (PHPFPMService) user group;
inherit siteSocket socketUser socketGroup;
service = siteName;
serviceRoot = siteRoot;
allowedClients = "127.0.0.1";
};
type = "fileset";
}