2024-10-06 16:55:25 +00:00
|
|
|
{
|
2024-10-13 17:41:19 +00:00
|
|
|
inputs,
|
|
|
|
system,
|
2024-10-06 16:55:25 +00:00
|
|
|
location,
|
|
|
|
vhost,
|
|
|
|
...
|
2024-10-13 17:41:19 +00:00
|
|
|
}: {
|
2024-10-06 16:55:25 +00:00
|
|
|
services.nginx.virtualHosts.${vhost}.locations."/${location}/" = {
|
2024-10-13 17:41:19 +00:00
|
|
|
alias = inputs.projet-probleme-inverse-3D.packages.${system}.slides + "/";
|
|
|
|
tryFiles = "$uri $uri/ /${location}/index.html";
|
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(*slidevjs/slidev*)"
|
|
|
|
"[BODY] == pat(*/projet-probleme-inverse-3D/assets/index*)"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
2023-06-25 13:33:43 +00:00
|
|
|
}
|