nix-stuff/roles/server/endlessh.nix
Toast 67989ca1a8 Server/endlessh: open firewal
I got confused and closed the firewall
thinking it was for the prometheus metrics
2025-01-10 11:26:57 +01:00

21 lines
493 B
Nix
Executable file

{config,...}: {
# I prefer using the go implementation
services.endlessh-go = {
enable = true;
openFirewall = true;
prometheus = {
enable = true;
listenAddress = "127.0.0.1";
};
extraOptions = ["-geoip_supplier ip-api"];
};
services.prometheus.scrapeConfigs = [
{
job_name = "everest-endlessh";
static_configs = [
{targets = ["127.0.0.1:${builtins.toString config.services.endlessh-go.prometheus.port}"];}
];
}
];
}