infrastructure/hosts/cesium/services/nginx/n7/projet-systemes-algorithmes-repartis.nix

26 lines
534 B
Nix
Raw Normal View History

{
inputs,
system,
location,
vhost,
...
}: {
services.nginx.virtualHosts.${vhost}.locations."/${location}/" = {
alias = inputs.projet-systemes-algorithmes-repartis.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(*The RAFT Consensus Algorithm*)"
];
}
];
}