Phase 1-3: AList stock deployment, NocoDB 7-table schema, W1/W2 n8n workflows + docs

This commit is contained in:
2026-08-22 19:26:06 +08:00
commit 71acb88078
21 changed files with 2127 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
# AList Serve Resource 健康检查
# 用法: ./scripts/healthcheck.sh [ALIST_INTERNAL_URL]
set -euo pipefail
ALIST_URL="${1:-http://localhost:5247}"
echo "== AList container =="
docker inspect --format '状态: {{.State.Status}} 健康: {{.State.Health.Status}}' alist-serve-resource 2>/dev/null || echo "container 未运行"
echo "== HTTP 探活 =="
code=$(curl -s -o /dev/null -w '%{http_code}' "${ALIST_URL}/ping" || echo "ERR")
echo "GET /ping -> ${code} (期望 200)"
echo "== 挂载检查 =="
docker exec alist-serve-resource sh -c 'for m in /mnt/Class /mnt/Book /mnt/Comic /mnt/Template; do \
if [ -d "$m" ]; then echo "OK $m"; else echo "MISS $m"; fi; done' 2>/dev/null || echo "无法 exec(container 未运行或无 shell)"