infrastructure/hosts/cesium/services/nginx/n7/projet-audionumerique.nix

26 lines
503 B
Nix
Raw Normal View History

2023-12-15 15:18:36 +00:00
{
inputs,
system,
vhost,
location,
2023-12-15 15:18:36 +00:00
...
}: {
services.nginx.virtualHosts.${vhost}.locations."/${location}/" = {
alias = inputs.projet-audionumerique.packages.${system}.slides + "/";
};
services.gatus.settings.endpoints = [
{
name = location;
group = vhost;
url = "https://${vhost}/${location}/";
interval = "15m";
conditions = [
"[STATUS] == 200"
"[RESPONSE_TIME] < 300"
"[BODY] == pat(*Whisper</h1>*)"
];
}
];
}