infrastructure/hosts/cesium/services/nginx/n7/projet-oral-anglais.nix

26 lines
511 B
Nix
Raw Normal View History

2023-12-15 15:18:36 +00:00
{
inputs,
system,
location,
vhost,
2023-12-15 15:18:36 +00:00
...
}: {
services.nginx.virtualHosts.${vhost}.locations."/${location}/" = {
alias = inputs.projet-oral-anglais.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(*<title>CAPTCHA</title>*)"
];
}
];
}