infrastructure/hosts/cesium/services/nginx/n7/TP-traitement-audio-visuel.nix

26 lines
513 B
Nix
Raw Normal View History

{
inputs,
system,
location,
vhost,
...
}: {
services.nginx.virtualHosts.${vhost}.locations."/${location}/" = {
alias = inputs.TP-traitement-audio-visuel.packages.${system}.notebooks + "/";
};
services.gatus.settings.endpoints = [
{
name = location;
group = vhost;
url = "https://${vhost}/${location}/";
interval = "15m";
conditions = [
"[STATUS] == 200"
"[RESPONSE_TIME] < 300"
"[BODY] == pat(*pluto_notebook*)"
];
}
];
}