infrastructure/hosts/cesium/services/atuin.nix

33 lines
693 B
Nix
Raw Normal View History

2023-12-15 15:18:36 +00:00
{...}: {
2023-04-23 18:13:39 +00:00
services.atuin = {
enable = true;
openRegistration = false;
maxHistoryLength = 1000000000;
};
services.nginx = {
virtualHosts = {
"atuin.fainsin.bzh" = {
forceSSL = true;
enableACME = true;
2023-12-15 15:18:36 +00:00
locations."/".proxyPass = "http://127.0.0.1:8888";
2023-04-23 18:13:39 +00:00
};
};
};
services.gatus.settings.endpoints = [
{
name = "atuin.fainsin.bzh";
group = "services";
url = "https://atuin.fainsin.bzh";
interval = "15m";
conditions = [
"[STATUS] == 200"
"[RESPONSE_TIME] < 300"
"[CERTIFICATE_EXPIRATION] > 240h"
"[BODY].homage == pat(*Sir Terry Pratchett*)"
];
}
];
2023-04-23 18:13:39 +00:00
}