mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 11:41:34 +01:00
gatus: Include the whole domain in the endpoint name
This commit is contained in:
parent
4a501653ce
commit
4ddc49c001
2 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "status.${privateDomain}";
|
domain = "status.${privateDomain}";
|
||||||
generateDefaultEndpoints = true;
|
generateDefaultEndpoints = true;
|
||||||
endpoints."alerts" = {
|
endpoints."alerts.${privateDomain}" = {
|
||||||
path = "/v1/health";
|
path = "/v1/health";
|
||||||
extraConditions = [ "[BODY].healthy == true" ];
|
extraConditions = [ "[BODY].healthy == true" ];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -183,7 +183,7 @@ in
|
||||||
|> lib.filter (domain: domain != cfg.domain)
|
|> lib.filter (domain: domain != cfg.domain)
|
||||||
|> lib.map (
|
|> lib.map (
|
||||||
domain:
|
domain:
|
||||||
lib.nameValuePair (self.lib.subdomainOf domain) {
|
lib.nameValuePair domain {
|
||||||
inherit domain;
|
inherit domain;
|
||||||
group = hostName;
|
group = hostName;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue