feat: uptime-kuma
This commit is contained in:
parent
e2e7ffb75e
commit
5893fd4a52
2 changed files with 28 additions and 5 deletions
|
|
@ -14,9 +14,9 @@ in
|
|||
ip4 = "192.168.0.5";
|
||||
};
|
||||
|
||||
# environment.systemPackages = with pkgs; [
|
||||
#
|
||||
# ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
curl
|
||||
];
|
||||
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
80
|
||||
|
|
@ -47,6 +47,9 @@ in
|
|||
"metrics.dukeceph.xyz".extraConfig = ''
|
||||
reverse_proxy http://192.168.0.6:3000
|
||||
'';
|
||||
"uptime.rperce.net".extraConfig = ''
|
||||
reverse_proxy 192.168.0.6:3001
|
||||
'';
|
||||
"jellyfin.rperce.net".extraConfig = ''
|
||||
reverse_proxy http://192.168.0.2:8096
|
||||
'';
|
||||
|
|
@ -99,6 +102,12 @@ in
|
|||
repo = "ssh://backup@xalicas/./miniflux";
|
||||
compression = "auto,zstd";
|
||||
startAt = "daily";
|
||||
postHook = ''
|
||||
echo "exit $exitStatus"
|
||||
if [ $exitStatus -eq 0 ]; then
|
||||
/run/current-system/sw/bin/curl -sSL http://192.168.0.6:3001/api/push/yTBTVZF8Bz?status=up&msg=OK&ping=
|
||||
fi
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue