mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 17:31:34 +01:00
Declare gatus endpoints in each of their respective modules
This commit is contained in:
parent
d6245fada0
commit
7a9796e02c
7 changed files with 104 additions and 77 deletions
|
|
@ -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}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue