2024-07-21 17:49:46 +00:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
system,
|
|
|
|
...
|
|
|
|
}: {
|
2023-06-19 19:08:25 +00:00
|
|
|
services.nginx.virtualHosts = {
|
2023-06-24 15:59:31 +00:00
|
|
|
"laurent.fainsin.bzh" = {
|
2023-06-19 19:08:25 +00:00
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
2024-10-06 16:55:25 +00:00
|
|
|
|
2024-07-21 17:49:46 +00:00
|
|
|
locations = {
|
|
|
|
"/" = {
|
|
|
|
root = inputs.website.packages.${system}.default;
|
|
|
|
};
|
|
|
|
};
|
2023-06-19 19:08:25 +00:00
|
|
|
};
|
2024-10-06 16:55:25 +00:00
|
|
|
|
2023-06-24 15:59:31 +00:00
|
|
|
"fainsin.bzh" = {
|
2023-06-19 19:08:25 +00:00
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
2024-10-06 16:55:25 +00:00
|
|
|
|
2023-12-15 15:18:36 +00:00
|
|
|
locations."/".return = ''301 "$scheme://laurent.fainsin.bzh$request_uri"'';
|
2023-06-19 19:08:25 +00:00
|
|
|
};
|
2024-10-06 16:55:25 +00:00
|
|
|
|
2023-06-19 19:08:25 +00:00
|
|
|
default = {
|
|
|
|
default = true;
|
2023-10-19 19:01:59 +00:00
|
|
|
locations."/".return = ''301 "$scheme://laurent.fainsin.bzh" '';
|
2023-06-19 19:08:25 +00:00
|
|
|
};
|
|
|
|
};
|
2024-10-06 16:15:10 +00:00
|
|
|
|
|
|
|
services.gatus.settings.endpoints = [
|
|
|
|
{
|
|
|
|
name = "fainsin.bzh";
|
|
|
|
url = "https://fainsin.bzh";
|
|
|
|
interval = "6h";
|
|
|
|
conditions = [
|
|
|
|
"[DOMAIN_EXPIRATION] > 720h"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "laurent.fainsin.bzh";
|
|
|
|
group = "web";
|
|
|
|
url = "https://laurent.fainsin.bzh";
|
|
|
|
interval = "5m";
|
|
|
|
conditions = [
|
|
|
|
"[STATUS] == 200"
|
|
|
|
"[RESPONSE_TIME] < 300"
|
|
|
|
"[BODY] == pat(*<title>Laurent Fainsin</title>*)"
|
|
|
|
"[CERTIFICATE_EXPIRATION] > 240h"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
2023-06-19 19:08:25 +00:00
|
|
|
}
|