2023-12-17 15:28:04 +00:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
system,
|
2024-10-06 16:55:25 +00:00
|
|
|
location,
|
|
|
|
vhost,
|
2023-12-17 15:28:04 +00:00
|
|
|
...
|
|
|
|
}: {
|
2024-10-06 16:55:25 +00:00
|
|
|
services.nginx.virtualHosts.${vhost}.locations."/${location}/" = {
|
2024-10-06 16:15:10 +00:00
|
|
|
alias = inputs.projet-modelisation-geometrique.packages.${system}.report + "/";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.gatus.settings.endpoints = [
|
|
|
|
{
|
2024-10-06 16:55:25 +00:00
|
|
|
name = location;
|
|
|
|
group = vhost;
|
|
|
|
url = "https://${vhost}/${location}/";
|
2024-10-06 16:15:10 +00:00
|
|
|
interval = "15m";
|
|
|
|
conditions = [
|
|
|
|
"[STATUS] == 200"
|
|
|
|
"[RESPONSE_TIME] < 300"
|
|
|
|
"[BODY] == pat(*Projet de Modélisation Géométrique*)"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
2023-06-27 19:08:29 +00:00
|
|
|
}
|