feat(dashboard): deploy open-source Homepage (3002) and Glance (3003) connected to live telemetry
This commit is contained in:
1 parent
33d188cad9
commit
d2c5448565
9 files changed
+346
-1
No files matched your search
@@ -0,0 +1,122 @@
|
|||||||
|
theme:
|
||||||
|
background-color: 240 10 4
|
||||||
|
primary-color: 210 90 65
|
||||||
|
contrast-multiplier: 1.2
|
||||||
|
|
||||||
|
pages:
|
||||||
|
- name: HomeLab 中控台
|
||||||
|
columns:
|
||||||
|
- size: small
|
||||||
|
widgets:
|
||||||
|
- type: clock
|
||||||
|
hour-format: 24h
|
||||||
|
timezones:
|
||||||
|
- timezone: Asia/Shanghai
|
||||||
|
label: 中国标准时间
|
||||||
|
- timezone: Asia/Singapore
|
||||||
|
label: 新加坡节点
|
||||||
|
|
||||||
|
- type: weather
|
||||||
|
location: Hangzhou, China
|
||||||
|
units: metric
|
||||||
|
hour-format: 24h
|
||||||
|
|
||||||
|
- type: docker-containers
|
||||||
|
title: OrbStack 运行容器
|
||||||
|
|
||||||
|
- size: full
|
||||||
|
widgets:
|
||||||
|
- type: search
|
||||||
|
search-engine: google
|
||||||
|
autofocus: false
|
||||||
|
|
||||||
|
- type: monitor
|
||||||
|
cache: 10s
|
||||||
|
title: 全屋核心服务矩阵 (点击直达)
|
||||||
|
sites:
|
||||||
|
- title: AGY 云端工作台 (24h Web 终端)
|
||||||
|
url: https://agy.961504.xyz
|
||||||
|
check-url: http://host.docker.internal:7681
|
||||||
|
icon: si:gnometerminal
|
||||||
|
- title: 极空间 Z4 私有云 (20TB 存储)
|
||||||
|
url: https://z4.home.961504.xyz:10443
|
||||||
|
check-url: http://host.docker.internal:3004/api/telemetry
|
||||||
|
icon: si:synology
|
||||||
|
- title: Vaultwarden 密码保险箱
|
||||||
|
url: https://vw.961504.xyz
|
||||||
|
check-url: http://host.docker.internal:8222
|
||||||
|
icon: si:bitwarden
|
||||||
|
- title: Mihomo 路由分流面板
|
||||||
|
url: https://clash.home.961504.xyz:10443/ui/
|
||||||
|
check-url: http://host.docker.internal:3004/api/telemetry
|
||||||
|
icon: si:cloudflare
|
||||||
|
- title: 小米主路由器后台
|
||||||
|
url: https://router.home.961504.xyz:10443
|
||||||
|
check-url: http://host.docker.internal:3004/api/telemetry
|
||||||
|
icon: si:xiaomi
|
||||||
|
- title: Uptime Kuma 外部哨兵
|
||||||
|
url: https://status.961504.xyz
|
||||||
|
check-url: https://status.961504.xyz
|
||||||
|
icon: si:uptimekuma
|
||||||
|
|
||||||
|
- type: custom-api
|
||||||
|
title: 全屋硬件与 AI 专线实时状态
|
||||||
|
cache: 3s
|
||||||
|
url: http://host.docker.internal:3004/api/telemetry
|
||||||
|
template: |
|
||||||
|
<div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;">
|
||||||
|
<div style="padding: 14px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);">
|
||||||
|
<div class="size-h4 color-primary">🖥️ M6 Mac mini</div>
|
||||||
|
<div class="size-h6 color-subdue" style="margin-top:4px;">IP: {{ .JSON.String "mini.ip" }} · UP {{ .JSON.String "mini.uptime" }}</div>
|
||||||
|
<div style="margin-top: 10px; font-size: 13px;">
|
||||||
|
<div>CPU 负载: <span class="color-highlight">{{ .JSON.Float "mini.cpu_pct" }}%</span></div>
|
||||||
|
<div>统一内存: <span class="color-highlight">{{ .JSON.Float "mini.mem_used_gb" }} / 24 GB ({{ .JSON.Float "mini.mem_pct" }}%)</span></div>
|
||||||
|
<div>NVMe 闪存: <span class="color-highlight">{{ .JSON.Float "mini.disk_used_gb" }} / {{ .JSON.Float "mini.disk_total_gb" }} GB</span></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="padding: 14px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);">
|
||||||
|
<div class="size-h4 color-primary">💾 极空间 Z4 (20TB)</div>
|
||||||
|
<div class="size-h6 color-subdue" style="margin-top:4px;">IP: {{ .JSON.String "nas.ip" }} · SMB 已挂载 ~/nas</div>
|
||||||
|
<div style="margin-top: 10px; font-size: 13px;">
|
||||||
|
<div>剩余可用: <span class="color-positive">{{ .JSON.Float "nas.free_tb" }} TB</span></div>
|
||||||
|
<div>已用空间: <span class="color-highlight">{{ .JSON.Float "nas.used_tb" }} TB ({{ .JSON.Float "nas.pct" }}%)</span></div>
|
||||||
|
<div>最近灾备: <span class="color-highlight">{{ .JSON.String "nas.latest_backup" }}</span></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div style="padding: 14px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);">
|
||||||
|
<div class="size-h4 color-primary">🛡️ AI 狮城专线 & 家宽</div>
|
||||||
|
<div class="size-h6 color-subdue" style="margin-top:4px;">{{ .JSON.String "network.ai_policy" }}</div>
|
||||||
|
<div style="margin-top: 10px; font-size: 13px;">
|
||||||
|
<div>AI 锁定出口: <span class="color-positive">{{ .JSON.String "network.sg_egress_ip" }}</span></div>
|
||||||
|
<div>狮城延迟: <span class="color-highlight">{{ .JSON.Int "network.sg_delay_ms" }} ms ({{ .JSON.String "network.sg_node" }})</span></div>
|
||||||
|
<div>家里联通公网: <span class="color-highlight">{{ .JSON.String "network.home_wan_ip" }}</span></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
- type: bookmarks
|
||||||
|
groups:
|
||||||
|
- title: 443 免端口直达 (全网通用)
|
||||||
|
links:
|
||||||
|
- title: AGY 云端工作台
|
||||||
|
url: https://agy.961504.xyz
|
||||||
|
- title: Vaultwarden 密码库
|
||||||
|
url: https://vw.961504.xyz
|
||||||
|
- title: Uptime Kuma 监控
|
||||||
|
url: https://status.961504.xyz
|
||||||
|
- title: 10443 家宽公网直连
|
||||||
|
links:
|
||||||
|
- title: 极空间 Z4
|
||||||
|
url: https://z4.home.961504.xyz:10443
|
||||||
|
- title: AGY 工作台 (10443)
|
||||||
|
url: https://agy.home.961504.xyz:10443
|
||||||
|
- title: Mihomo 面板
|
||||||
|
url: https://clash.home.961504.xyz:10443/ui/
|
||||||
|
- title: 局域网原生极速 (192.168.31.x)
|
||||||
|
links:
|
||||||
|
- title: AGY 终端 (7681)
|
||||||
|
url: http://192.168.31.164:7681
|
||||||
|
- title: 极空间 (5055)
|
||||||
|
url: http://192.168.31.185:5055
|
||||||
|
- title: 小米路由器 (31.1)
|
||||||
|
url: http://192.168.31.1
|
||||||
Reference in new issue
Block a user