infrastructure/hosts/cesium/services/nginx/n7/projet-modelisation-geometrique.nix

26 lines
538 B
Nix
Raw Normal View History

{
inputs,
system,
location,
vhost,
...
}: {
services.nginx.virtualHosts.${vhost}.locations."/${location}/" = {
alias = inputs.projet-modelisation-geometrique.packages.${system}.report + "/";
};
services.gatus.settings.endpoints = [
{
name = location;
group = vhost;
url = "https://${vhost}/${location}/";
interval = "15m";
conditions = [
"[STATUS] == 200"
"[RESPONSE_TIME] < 300"
"[BODY] == pat(*Projet de Modélisation Géométrique*)"
];
}
];
}