init: Hugo + Stack 主题 + 首批 3 篇文章 + Gitea Actions 自动部署

- Stack 主题 + 自定义 padding 与标题样式 (assets/scss/custom.scss)
- 内容: HTTPS 旅程 / AI 工程师地图 / Xray Reality
- 页面: 首页 / 文章 / 归档 / 关于 / 搜索
- CI: Gitea Actions push → hugo --minify → rsync 到 NAS
  应用 Gitea Actions 模板 §4.4-4.5 经验: paths-ignore (注意不排除 **.md)
  + concurrency cancel-in-progress + summary
This commit is contained in:
2026-05-03 15:56:04 +08:00
commit 9bbab6a135
18 changed files with 2576 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# 拉到 NAS:/volume1/docker/compose/blog/docker-compose.yml
# 仅供参考 / 重建用 —— 5-02 容器已在跑,正常情况下不需要重建
#
# 部署:
# ssh nas
# cd /volume1/docker/compose/blog
# docker compose up -d
#
# 真正"自动更新"靠 Gitea Actions(.gitea/workflows/build.yml):
# push → runner build hugo → rsync 到 /volume1/docker/blog/public/
# nginx 直接 serve 新文件(只读挂载,文件系统层同步,无需重启容器)
services:
blog:
image: nginx:alpine
container_name: blog
restart: unless-stopped
ports:
- "8082:80"
volumes:
- /volume1/docker/blog/public:/usr/share/nginx/html:ro
environment:
- TZ=Asia/Shanghai
healthcheck:
test: ["CMD", "wget", "-q", "-O-", "http://localhost/"]
interval: 30s
timeout: 5s
retries: 3