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