1
0
Fork 0
selfhostblocks/haproxy/mkconfig.nix

32 lines
510 B
Nix
Raw Normal View History

2022-10-04 09:08:51 +02:00
{ HaproxyConfig
}:
{ name
, configDir
, configFile
, user
, group
, statsEnable ? false
, statsPort ? null
, prometheusStatsUri ? null
, certPath ? null
, acls ? []
, backends ? []
, dependsOn ? {}
}:
{
inherit name configDir configFile;
inherit user group;
pkg = HaproxyConfig {
inherit configDir configFile;
inherit user group;
inherit statsEnable statsPort;
inherit prometheusStatsUri;
inherit certPath;
inherit acls backends;
};
inherit dependsOn;
type = "fileset";
}