2023-12-15 15:18:36 +00:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
system,
|
|
|
|
...
|
|
|
|
}: {
|
2023-06-24 18:19:27 +00:00
|
|
|
services.nginx.virtualHosts = {
|
|
|
|
"resume.laurent.fainsin.bzh" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
2024-10-06 16:55:25 +00:00
|
|
|
|
2023-06-24 18:19:27 +00:00
|
|
|
locations = {
|
|
|
|
"/" = {
|
2023-11-24 22:22:30 +00:00
|
|
|
root = inputs.resume.packages.${system}.default;
|
2023-06-24 18:19:27 +00:00
|
|
|
index = "resume.pdf";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-10-06 16:15:10 +00:00
|
|
|
|
|
|
|
services.gatus.settings.endpoints = [
|
|
|
|
{
|
|
|
|
name = "resume.laurent.fainsin.bzh";
|
|
|
|
group = "web";
|
|
|
|
url = "https://resume.laurent.fainsin.bzh";
|
|
|
|
interval = "5m";
|
|
|
|
conditions = [
|
|
|
|
"[STATUS] == 200"
|
|
|
|
"[RESPONSE_TIME] < 300"
|
|
|
|
"[CERTIFICATE_EXPIRATION] > 240h"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
2023-06-24 18:19:27 +00:00
|
|
|
}
|