Files
hearth/nixos/system/hectic-lab/sentinèlla.nix
T
2026-02-27 19:57:44 +00:00

27 lines
395 B
Nix

{
inputs,
flake,
self,
domain,
sslOpts,
...
}: let
port = 5869;
in {
hectic = {
services."sentinèlla".probe = {
enable = true;
inherit port;
};
};
services.nginx = {
virtualHosts."probe.${domain}" = sslOpts // {
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${builtins.toString port}";
};
};
};
}