This commit is contained in:
Vivian 2023-05-07 18:42:36 +02:00
parent a28992c684
commit cba8485ba2
5 changed files with 39 additions and 27 deletions

View file

@ -18,7 +18,7 @@
# Additional packages
environment.systemPackages = with pkgs; [ ntfy-sh ];
networking.firewall.allowedTCPPorts = [ 80 ];
networking.firewall.allowedTCPPorts = [ 80 9090 ];
services.ntfy-sh = let datadir = "/var/lib/ntfy";
in {
@ -31,6 +31,7 @@
auth-default-access = "deny-all";
behind-proxy = true;
attachment-cache-dir = "${datadir}/attachments";
metrics-listen-http = ":9090";
};
};
}

View file

@ -25,7 +25,7 @@ in {
enable = true;
listenAddress = ":${toString vmPort}";
# Data Retention period in months
retentionPeriod = 12;
retentionPeriod = 36;
};
services.vmagent = {
@ -53,7 +53,6 @@ in {
}
{
job_name = "synapse";
metrics_path = "/_synapse/metrics";
static_configs = [{
targets = [ "synapse.olympus:9000" ];
labels.app = "synapse";
@ -66,6 +65,13 @@ in {
labels.app = "wireguard";
}];
}
{
job_name = "ntfy";
static_configs = [{
targets = [ "ntfy.olympus:9090"];
labels.app = "ntfy";
}];
}
];
};
};