vps-monitor: Expose ntfy completely publicly again

This commit is contained in:
SebastianStork 2026-01-19 21:34:31 +01:00
parent e3b572ef96
commit ca35081ddc
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -40,26 +40,19 @@
nebula.enable = true; nebula.enable = true;
sshd.enable = true; sshd.enable = true;
dns.enable = true; dns.enable = true;
caddy.virtualHosts."alerts.sprouted.cloud" = {
inherit (config.custom.web-services.ntfy) port;
extraConfig = ''
@putpost method PUT POST
respond @putpost "Access denied" 403 { close }
'';
};
}; };
web-services = web-services =
let let
privateDomain = config.custom.networking.overlay.domain; privateDomain = config.custom.networking.overlay.domain;
sproutedCloud = "sprouted.cloud";
in in
{ {
gatus = { gatus = {
enable = true; enable = true;
domain = "status.${privateDomain}"; domain = "status.${privateDomain}";
generateDefaultEndpoints = true; generateDefaultEndpoints = true;
endpoints."alerts.${privateDomain}" = { endpoints."alerts.${sproutedCloud}" = {
path = "/v1/health"; path = "/v1/health";
extraConditions = [ "[BODY].healthy == true" ]; extraConditions = [ "[BODY].healthy == true" ];
}; };
@ -67,7 +60,7 @@
ntfy = { ntfy = {
enable = true; enable = true;
domain = "alerts.${privateDomain}"; domain = "alerts.${sproutedCloud}";
}; };
grafana = { grafana = {