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:
parent
a48149ff0d
commit
fe27709fd4
1 changed files with 1 additions and 1 deletions
|
|
@ -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}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue