mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21: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}";
|
domain = "status.${config.custom.services.tailscale.domain}";
|
||||||
endpointDomains = config.meta.domains.globalList;
|
endpointDomains = config.meta.domains.globalList;
|
||||||
customEndpoints = {
|
customEndpoints = {
|
||||||
"status" = {
|
|
||||||
group = "Monitoring";
|
|
||||||
url = "https://${config.custom.services.gatus.domain}";
|
|
||||||
};
|
|
||||||
"alerts" = {
|
"alerts" = {
|
||||||
group = "Monitoring";
|
group = "Monitoring";
|
||||||
url = "https://alerts.${config.custom.services.tailscale.domain}/v1/health";
|
url = "https://alerts.${config.custom.services.tailscale.domain}/v1/health";
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ let
|
||||||
getSubdomain = domain: domain |> lib.splitString "." |> lib.head;
|
getSubdomain = domain: domain |> lib.splitString "." |> lib.head;
|
||||||
in
|
in
|
||||||
cfg.endpointDomains
|
cfg.endpointDomains
|
||||||
|
|> lib.filter (domain: domain != cfg.domain)
|
||||||
|> lib.map (
|
|> lib.map (
|
||||||
domain:
|
domain:
|
||||||
lib.nameValuePair (getSubdomain domain) {
|
lib.nameValuePair (getSubdomain domain) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue