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.
This commit is contained in:
Viktor Barzin 2026-03-25 22:59:26 +02:00
parent a48149ff0d
commit fe27709fd4

View file

@ -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}")