feat: sentinella: some

This commit is contained in:
2026-04-27 12:58:36 +00:00
parent e6df3b8456
commit def84b0890
6 changed files with 112 additions and 53 deletions
+5 -12
View File
@@ -5,19 +5,12 @@
domain,
sslOpts,
...
}: { ... }: let
port = 5869;
in {
}: { ... }: {
hectic.services."sentinèlla" = {
probe = {
enable = true;
inherit port;
};
probe.enable = true;
watcher = {
enable = true;
peersDns = "peers.${domain}";
peersPort = port;
pollingIntervalSec = 60;
enable = true;
pollingIntervalSec = 60;
# TG_TOKEN= and TG_CHAT_ID= are read from sus/sentinella-default.yaml
# (auto-declared by the module as sops.secrets."sentinèlla/watcher/environment")
};
@@ -27,7 +20,7 @@ in {
virtualHosts."probe.${domain}" = sslOpts // {
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${builtins.toString port}";
proxyPass = "http://127.0.0.1:5988";
};
};
};