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

32 lines
519 B
Nix
Raw Normal View History

{ PHPFPMSiteConfig
}:
{ PHPFPMConfig
2022-09-28 23:37:24 -07:00
, user
, group
, name
2022-09-14 20:46:14 -07:00
, phpConfigDir
, siteName
, siteRoot
2022-09-28 23:37:24 -07:00
, siteSocket
, socketUser
, socketGroup
2022-10-04 00:08:51 -07:00
, dependsOn ? {}
, connectsTo ? {}
}:
rec {
2022-09-28 23:37:24 -07:00
inherit name user group siteSocket;
pkg = PHPFPMSiteConfig {
inherit (PHPFPMConfig) siteConfigDir;
2022-09-28 23:37:24 -07:00
inherit user group;
2022-09-14 20:46:14 -07:00
inherit siteSocket phpConfigDir socketUser socketGroup;
service = siteName;
serviceRoot = siteRoot;
allowedClients = "127.0.0.1";
};
2022-10-04 00:08:51 -07:00
inherit dependsOn connectsTo;
type = "fileset";
}