2023-12-15 15:18:36 +00:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
system,
|
2024-10-06 16:55:25 +00:00
|
|
|
vhost,
|
|
|
|
location,
|
2023-12-15 15:18:36 +00:00
|
|
|
...
|
|
|
|
}: {
|
2024-10-06 16:55:25 +00:00
|
|
|
services.nginx.virtualHosts.${vhost}.locations."/${location}/" = {
|
|
|
|
alias = inputs.projet-intelligence-artificielle-multimedia.packages.${system}.slides + "/";
|
2024-10-06 16:15:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 IAM*)"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
2023-06-25 12:29:11 +00:00
|
|
|
}
|