mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
gatus: stop tracking gatus itself as an endpoint
This commit is contained in:
parent
47b35b5ed6
commit
aec20b69e8
2 changed files with 1 additions and 4 deletions
|
|
@ -20,10 +20,6 @@
|
|||
domain = "status.${config.custom.services.tailscale.domain}";
|
||||
endpointDomains = config.meta.domains.globalList;
|
||||
customEndpoints = {
|
||||
"status" = {
|
||||
group = "Monitoring";
|
||||
url = "https://${config.custom.services.gatus.domain}";
|
||||
};
|
||||
"alerts" = {
|
||||
group = "Monitoring";
|
||||
url = "https://alerts.${config.custom.services.tailscale.domain}/v1/health";
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ let
|
|||
getSubdomain = domain: domain |> lib.splitString "." |> lib.head;
|
||||
in
|
||||
cfg.endpointDomains
|
||||
|> lib.filter (domain: domain != cfg.domain)
|
||||
|> lib.map (
|
||||
domain:
|
||||
lib.nameValuePair (getSubdomain domain) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue