1
0
Fork 0
selfhostblocks/haproxy/mkconfig.nix
2023-02-19 20:37:52 -08:00

31 lines
520 B
Nix

{ HaproxyConfig
}:
{ name
, configDir
, configFile
, user
, group
, statsEnable ? false
, statsPort ? null
, prometheusStatsUri ? null
, certPath ? null
, frontends ? []
, 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 frontends backends;
};
inherit dependsOn;
type = "fileset";
}