added internal URL for uptimekuma widget

This commit is contained in:
2026-01-13 10:46:25 +01:00
parent e47cc5a504
commit 17ef18f1d5
+7 -5
View File
@@ -685,7 +685,7 @@ data:
widgets: widgets:
- type: custom-api - type: custom-api
title: Uptime Kuma title: Uptime Kuma
title-url: ${UPTIME_KUMA_URL} title-url: ${UPTIME_KUMA_PUBLIC_URL}
url: ${UPTIME_KUMA_URL}/api/status-page/${UPTIME_KUMA_STATUS_SLUG} url: ${UPTIME_KUMA_URL}/api/status-page/${UPTIME_KUMA_STATUS_SLUG}
subrequests: subrequests:
heartbeats: heartbeats:
@@ -694,14 +694,14 @@ data:
template: | template: |
{{ $hb := .Subrequest "heartbeats" }} {{ $hb := .Subrequest "heartbeats" }}
{{ if not (.JSON.Exists "heartbeatList") }} {{ if not (.JSON.Exists "publicGroupList") }}
<p class="color-negative">Error reading response</p> <p class="color-negative">Error reading response</p>
{{ else if eq (len (.JSON.Array "heartbeatList")) 0 }} {{ else if eq (len (.JSON.Array "publicGroupList")) 0 }}
<p>No monitors found</p> <p>No monitors found</p>
{{ else }} {{ else }}
<ul class="dynamic-columns list-gap-8"> <ul class="dynamic-columns list-gap-8">
{{ range .JSON.Array "heartbeatList" }} {{ range .JSON.Array "publicGroupList" }}
{{ range .Array "monitorList" }} {{ range .Array "monitorList" }}
{{ $id := .String "id" }} {{ $id := .String "id" }}
{{ $hbArray := $hb.JSON.Array (print "heartbeatList." $id) }} {{ $hbArray := $hb.JSON.Array (print "heartbeatList." $id) }}
@@ -1576,8 +1576,10 @@ spec:
value: "837c7378-7a76-46f7-b8ea-6f35c0a314f4" value: "837c7378-7a76-46f7-b8ea-6f35c0a314f4"
- name: ROMM_URL - name: ROMM_URL
value: "arcade.dooplex.hu" value: "arcade.dooplex.hu"
- name: UPTIME_KUMA_URL - name: UPTIME_KUMA_PUBLIC_URL
value: "http://uptimekuma.dooplex.hu" value: "http://uptimekuma.dooplex.hu"
- name: UPTIME_KUMA_URL
value: "http://uptimekuma.uptimekuma-system.svc.cluster.local:3001"
- name: UPTIME_KUMA_STATUS_SLUG - name: UPTIME_KUMA_STATUS_SLUG
value: "homepage" value: "homepage"
ports: ports: