2022-09-12 21:21:18 +02:00
|
|
|
{ PHPFPMSiteConfig
|
|
|
|
}:
|
|
|
|
{ PHPFPMConfig
|
|
|
|
, PHPFPMService
|
|
|
|
, name
|
2022-09-15 05:46:14 +02:00
|
|
|
, phpConfigDir
|
2022-09-12 21:21:18 +02:00
|
|
|
, siteName
|
|
|
|
, siteRoot
|
|
|
|
, socketUser
|
|
|
|
, socketGroup
|
2022-09-15 05:46:14 +02:00
|
|
|
, dependsOn
|
2022-09-12 21:21:18 +02:00
|
|
|
}:
|
|
|
|
rec {
|
2022-09-15 05:46:14 +02:00
|
|
|
inherit name dependsOn;
|
|
|
|
siteSocket = "/run/php-fpm/${siteName}.sock";
|
2022-09-12 21:21:18 +02:00
|
|
|
pkg = PHPFPMSiteConfig {
|
|
|
|
inherit (PHPFPMConfig) siteConfigDir;
|
|
|
|
inherit (PHPFPMService) 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";
|
|
|
|
};
|
|
|
|
type = "fileset";
|
|
|
|
}
|