2022-09-12 21:21:18 +02:00
|
|
|
{ PHPFPMSiteConfig
|
|
|
|
}:
|
|
|
|
{ PHPFPMConfig
|
2022-09-29 08:37:24 +02:00
|
|
|
, user
|
|
|
|
, group
|
2022-09-12 21:21:18 +02:00
|
|
|
, name
|
2022-09-15 05:46:14 +02:00
|
|
|
, phpConfigDir
|
2022-09-12 21:21:18 +02:00
|
|
|
, siteName
|
|
|
|
, siteRoot
|
2022-09-29 08:37:24 +02:00
|
|
|
, siteSocket
|
2022-09-12 21:21:18 +02:00
|
|
|
, socketUser
|
|
|
|
, socketGroup
|
2022-10-04 09:08:51 +02:00
|
|
|
, dependsOn ? {}
|
|
|
|
, connectsTo ? {}
|
2022-09-12 21:21:18 +02:00
|
|
|
}:
|
|
|
|
rec {
|
2022-09-29 08:37:24 +02:00
|
|
|
inherit name user group siteSocket;
|
|
|
|
|
2022-09-12 21:21:18 +02:00
|
|
|
pkg = PHPFPMSiteConfig {
|
|
|
|
inherit (PHPFPMConfig) siteConfigDir;
|
2022-09-29 08:37:24 +02:00
|
|
|
inherit user group;
|
2022-09-15 05:46:14 +02:00
|
|
|
inherit siteSocket phpConfigDir socketUser socketGroup;
|
2022-09-12 21:21:18 +02:00
|
|
|
|
|
|
|
service = siteName;
|
|
|
|
serviceRoot = siteRoot;
|
|
|
|
allowedClients = "127.0.0.1";
|
|
|
|
};
|
2022-10-04 09:08:51 +02:00
|
|
|
|
|
|
|
inherit dependsOn connectsTo;
|
2022-09-12 21:21:18 +02:00
|
|
|
type = "fileset";
|
|
|
|
}
|