2024-10-06 16:55:25 +00:00
|
|
|
{
|
2024-10-11 20:11:08 +00:00
|
|
|
inputs,
|
|
|
|
system,
|
2024-10-06 16:55:25 +00:00
|
|
|
vhost,
|
|
|
|
location,
|
|
|
|
...
|
2024-10-11 20:11:08 +00:00
|
|
|
}: {
|
|
|
|
services.nginx.virtualHosts.${vhost}.locations = {
|
|
|
|
"/${location}/" = {
|
|
|
|
alias = inputs.projet-fin-etude.packages.${system}.slides + "/";
|
|
|
|
tryFiles = "$uri $uri/ /${location}/index.html";
|
|
|
|
};
|
|
|
|
"=/${location}/rapport.pdf" = {
|
|
|
|
alias = inputs.projet-fin-etude.packages.${system}.report + "/paper.pdf";
|
|
|
|
};
|
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*)"
|
2024-10-06 16:55:25 +00:00
|
|
|
"[BODY] == pat(*/${location}/assets/index*)"
|
2024-10-06 16:15:10 +00:00
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
2023-08-29 18:17:59 +00:00
|
|
|
}
|