Declare gatus endpoints in each of their respective modules

This commit is contained in:
SebastianStork 2025-06-15 00:02:13 +02:00
parent d6245fada0
commit 7a9796e02c
7 changed files with 104 additions and 77 deletions

View file

@ -93,5 +93,17 @@ in
"d ${config.services.forgejo.customDir}/public 750 ${user} ${group} - -"
"L+ ${config.services.forgejo.customDir}/public/robots.txt 750 - - - ${disallow-all-robots}"
];
custom.services.gatus.endpoints = {
"Forgejo" = {
group = "Public";
url = "https://${cfg.domain}/api/healthz";
extraConditions = [ "[BODY].status == pass" ];
};
"Forgejo SSH" = {
group = "Public";
url = "ssh://${cfg.domain}";
};
};
};
}