2022-09-12 12:21:18 -07:00
|
|
|
{ PHPFPMSiteConfig
|
|
|
|
}:
|
|
|
|
{ PHPFPMConfig
|
2022-09-28 23:37:24 -07:00
|
|
|
, user
|
|
|
|
, group
|
2022-09-12 12:21:18 -07:00
|
|
|
, name
|
2022-09-14 20:46:14 -07:00
|
|
|
, phpConfigDir
|
2022-09-12 12:21:18 -07:00
|
|
|
, siteName
|
|
|
|
, siteRoot
|
2022-09-28 23:37:24 -07:00
|
|
|
, siteSocket
|
2022-09-12 12:21:18 -07:00
|
|
|
, socketUser
|
|
|
|
, socketGroup
|
2022-10-04 00:08:51 -07:00
|
|
|
, dependsOn ? {}
|
|
|
|
, connectsTo ? {}
|
2022-09-12 12:21:18 -07:00
|
|
|
}:
|
|
|
|
rec {
|
2022-09-28 23:37:24 -07:00
|
|
|
inherit name user group siteSocket;
|
|
|
|
|
2022-09-12 12:21:18 -07:00
|
|
|
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;
|
2022-09-12 12:21:18 -07:00
|
|
|
|
|
|
|
service = siteName;
|
|
|
|
serviceRoot = siteRoot;
|
|
|
|
allowedClients = "127.0.0.1";
|
|
|
|
};
|
2022-10-04 00:08:51 -07:00
|
|
|
|
|
|
|
inherit dependsOn connectsTo;
|
2022-09-12 12:21:18 -07:00
|
|
|
type = "fileset";
|
|
|
|
}
|