Deduce gatus endpoint group from domain when possible

This commit is contained in:
SebastianStork 2025-06-20 22:17:54 +02:00
parent efe6da5582
commit dbe87bc88a
7 changed files with 11 additions and 20 deletions

View file

@ -99,12 +99,8 @@ in
};
custom.services.gatus.endpoints = lib.mkIf cfg.isServer {
"Syncthing" = {
group = "Private";
url = "tcp://${config.networking.hostName}.${tailscaleCfg.domain}:22000";
};
"Syncthing".url = "tcp://${config.networking.hostName}.${tailscaleCfg.domain}:22000";
"Syncthing GUI" = {
group = "Private";
url = "https://${cfg.gui.domain}/rest/noauth/health";
extraConditions = [ "[BODY].status == OK" ];
};