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

32 lines
519 B
Nix
Raw Normal View History

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