From fe27709fd47952091edcc8111bffe41c383d85d9 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Wed, 25 Mar 2026 22:59:26 +0200 Subject: [PATCH] fix email monitor: use internal URL for Uptime Kuma push Pods can't reach uptime.viktorbarzin.me externally. Switch to http://uptime-kuma.uptime-kuma.svc.cluster.local for the push endpoint. --- stacks/mailserver/modules/mailserver/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stacks/mailserver/modules/mailserver/main.tf b/stacks/mailserver/modules/mailserver/main.tf index 2a52f41d..1b8b03a7 100644 --- a/stacks/mailserver/modules/mailserver/main.tf +++ b/stacks/mailserver/modules/mailserver/main.tf @@ -628,7 +628,7 @@ except Exception as e: # Push to Uptime Kuma on success if success: try: - requests.get("https://uptime.viktorbarzin.me/api/push/hLtyRKgeZO?status=up&msg=OK&ping=" + str(int(duration)), timeout=10) + requests.get("http://uptime-kuma.uptime-kuma.svc.cluster.local/api/push/hLtyRKgeZO?status=up&msg=OK&ping=" + str(int(duration)), timeout=10) print("Pushed to Uptime Kuma") except Exception as e: print(f"Failed to push to Uptime Kuma: {e}")