21 lines
493 B
Nix
Executable file
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}"];}
|
|
];
|
|
}
|
|
];
|
|
}
|