23 lines
409 B
Nix
23 lines
409 B
Nix
{ CaddySiteConfig
|
|
}:
|
|
{ CaddyConfig
|
|
, CaddyService
|
|
, name
|
|
, port
|
|
, siteName
|
|
, siteRoot
|
|
, siteSocket ? ""
|
|
}:
|
|
{
|
|
inherit name;
|
|
pkg = CaddySiteConfig rec {
|
|
inherit (CaddyConfig) siteConfigDir;
|
|
|
|
portBinding = port;
|
|
bindService = siteName;
|
|
siteSocket = "${CaddyService.runtimeDirectory}/${siteName}.sock";
|
|
serviceRoot = siteRoot;
|
|
phpFpmSiteSocket = siteSocket;
|
|
};
|
|
type = "fileset";
|
|
}
|