docs(memory): 安装 design-taste-frontend v2 技能,记录 Bark 通知渠道勘查结论与网络坑

This commit is contained in:
夏犀麟 2026-09-13 17:36:08 +08:00
parent b7246c4d47
commit bcfc932061
3 changed files with 26 additions and 1 deletions

View File

@ -1,5 +1,7 @@
# 2026-09-13
2026-09-13 | DEP | 安装用户级技能 `design-taste-frontend`taste-skill v2源 github.com/Leonxlnx/taste-skill上游路径 skills/taste-skill/SKILL.md安装前完成安全审计P2 安全,纯 Markdown 无脚本description 追加中文触发词;来源与审计记录见 `~/.workbuddy/skills/design-taste-frontend/SOURCE.md`
2026-09-13 | FIX | 本机 git 走系统代理HTTP_PROXY=127.0.0.1:58412导致 github clone 失败Empty reply / CONNECT 502→ 清空代理 env 后用 `curl --noproxy "*"` 拉 codeload tarball 再解压可正常下载;另 Bash 工具在本机不可用shim 报 dirname: command not found需改用 PowerShell
2026-09-13 | CHG | Uptime Kuma 第一批监控上线9 个站点 HTTP 监控60/120/300s 三档 + 证书到期通知),因官方 API 不支持创建监控,采用「直写 SQLite monitor 表 + 重启容器」批量添加
2026-09-13 | FIX | 修正 service.xpcool.com 监控误报:后端纯 POST 无根路由,可接受状态码放宽为 ["200-399","404"](进程挂掉时 nginx 返 502仍判 DOWN
2026-09-13 | CFG | git.xpcool.com 证书更新(至 2026-12-12旧证书备份为 fullchain.pem.bak.202609131719;注意该站证书文件名是 fullchain.pem/privkey.pem与别的站不一致

View File

@ -67,4 +67,5 @@
| file / read / tool / sub2api | 120s | 2 | 2000 |
| code / status | 300s | 2 | 3000 |
- **`service.xpcool.com` 单独放宽为 `["200-399","404"]`**:该后端是纯 POST 接口(遵循本项目"接口全 POST"规范),任何 GET 都 404返回 404 说明 nginx + GoFrame 存活,**后端进程真挂时 nginx 返回 502仍会判 DOWN**。
- **待办**:通知渠道尚未配置(建议接 Bark可复用现有 `bark` 容器及 `service.xpcool.com/bark/` 反代);「证书到期提前几天通知」需在面板设置里确认。
- **通知渠道Bark2026-09-13 勘查结论)**Kuma 2.5.3 **原生支持 Bark**`/app/server/notification-providers/bark.js`),对应 `notification` 表(字段 `id/name/active/user_id/is_default/config``config` 为 JSON 字符串;截至 09-13 该表为空 = 尚未配通知。Bark 服务端 = 容器 `bark``finab/bark-server``0.0.0.0:8081`),另经 `service.xpcool.com/bark/` 反代(末尾斜杠会剥掉 `/bark/` 前缀);当前 server-monitor.sh 用的 key 在 `/etc/server-monitor.conf``BARK_URL`。**注意**Kuma 容器访问 Bark 建议用宿主机地址(容器内 `127.0.0.1` 不是宿主机),即 `http://172.17.0.1:8081/<key>`(或把 kuma 加入 `xpcool-net` 后用容器名 `bark`)。
- **待办**:「证书到期提前几天通知」需在面板设置里确认。

View File

@ -0,0 +1,22 @@
#!/bin/bash
# Bark 通道自检2026-09-13验证 key 是否可用
KEY="41c8059de37b3f1e826be240c72318e947366a283e125fb2784f3c1aa532b8cd"
echo "=== bark healthz ==="
curl -s -o /dev/null -m 10 -w "healthz=%{http_code}\n" http://127.0.0.1:8081/healthz
echo ""
echo "=== key1 (user provided, len=${#KEY}) ==="
curl -s -m 20 -o /tmp/bark-key1.json -w "http=%{http_code}\n" \
"http://127.0.0.1:8081/$KEY/Kuma%20Channel%20Test/ai-verify-20260913"
echo "--- body ---"
cat /tmp/bark-key1.json 2>/dev/null
echo ""
echo ""
echo "=== key2 (existing server-monitor key) ==="
curl -s -m 20 -o /tmp/bark-key2.json -w "http=%{http_code}\n" \
"http://127.0.0.1:8081/sm5WnyANWx89GgLtFnRXhk/Kuma%20Channel%20Test/server-monitor-key-check"
echo "--- body ---"
cat /tmp/bark-key2.json 2>/dev/null
echo ""