mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 23:11:34 +01:00
Simplify config for gatus endpoints
This commit is contained in:
parent
f65bf51905
commit
6c0ff3393b
9 changed files with 29 additions and 61 deletions
|
|
@ -97,13 +97,5 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
custom.services.gatus.endpoints = lib.mkIf cfg.isServer {
|
||||
"Syncthing".url = "tcp://${config.networking.hostName}.${tailscaleCfg.domain}:22000";
|
||||
"Syncthing GUI" = {
|
||||
url = "https://${cfg.gui.domain}/rest/noauth/health";
|
||||
extraConditions = [ "[BODY].status == OK" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue