infrastructure/hosts/cesium/services/nginx/laurent/resume.nix

34 lines
639 B
Nix
Raw Normal View History

2023-12-15 15:18:36 +00:00
{
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"
];
}
];
}