2024-01-02 11:13:22 +00:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
system,
|
2024-10-06 16:55:25 +00:00
|
|
|
location,
|
|
|
|
vhost,
|
2024-01-02 11:13:22 +00:00
|
|
|
...
|
|
|
|
}: {
|
2024-10-06 16:55:25 +00:00
|
|
|
services.nginx.virtualHosts.${vhost}.locations."/${location}/" = {
|
2024-10-06 16:15:10 +00:00
|
|
|
alias = inputs.TP-reinforcement-learning.packages.${system}.notebooks + "/";
|
|
|
|
};
|
|
|
|
|
|
|
|
services.gatus.settings.endpoints = [
|
|
|
|
{
|
2024-10-06 16:55:25 +00:00
|
|
|
name = location;
|
|
|
|
group = vhost;
|
|
|
|
url = "https://${vhost}/${location}/";
|
2024-10-06 16:15:10 +00:00
|
|
|
interval = "15m";
|
|
|
|
conditions = [
|
|
|
|
"[STATUS] == 200"
|
|
|
|
"[RESPONSE_TIME] < 300"
|
|
|
|
"[BODY] == pat(*pluto_notebook*)"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
2023-06-26 19:36:10 +00:00
|
|
|
}
|