mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Deduce gatus endpoint group from domain when possible
This commit is contained in:
parent
efe6da5582
commit
dbe87bc88a
7 changed files with 11 additions and 20 deletions
|
|
@ -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" ];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue