infrastructure/hosts/cesium/services/nginx/laurent/resume.nix
Laureηt a913961060
🎨 (cesium) dry-ify a little bit the nginx n7 sites
Could be even more dry if got rid of the fetchgit precompiled pages
2024-10-06 18:55:25 +02:00

34 lines
639 B
Nix

{
inputs,
system,
...
}: {
services.nginx.virtualHosts = {
"resume.laurent.fainsin.bzh" = {
enableACME = true;
forceSSL = true;
locations = {
"/" = {
root = inputs.resume.packages.${system}.default;
index = "resume.pdf";
};
};
};
};
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"
];
}
];
}