This commit is contained in:
parent
e9c5170ec1
commit
ac009b4593
5 changed files with 39 additions and 27 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
}];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue