添加 CI 自动部署 workflow + CMS IP 配置
All checks were successful
Build and Deploy / build-deploy (push) Successful in 46s

This commit is contained in:
2026-06-11 17:58:24 +08:00
parent 53092b52db
commit db90280989
6 changed files with 90 additions and 11 deletions

View File

@@ -1,12 +1,13 @@
# Sveltia CMS 配置(兼容 Decap CMS 格式)
# 后端:自托管 Gitea通过 Gitea OAuth 登录鉴权
# 后端:自托管 GiteaIP 访问,备案完成前不走域名),通过 Gitea OAuth 登录鉴权
backend:
name: gitea
repo: shizhui/shizhui_website # Gitea 上的 <owner>/<repo>,部署时按实际创建调整
base_url: https://git.shizhui.xyz # Gitea 实例地址OAuth 在此完成)
api_root: https://git.shizhui.xyz/api/v1
repo: shizhui/shizhui_website # Gitea 上的 <owner>/<repo>
base_url: http://8.137.165.96:3000 # Gitea 实例地址OAuth 在此完成)
api_root: http://8.137.165.96:3000/api/v1
branch: main
app_id: "27b5f734-8df0-4a5e-9ea8-e7597dea4f6c" # Gitea OAuth 应用 client_id公开客户端PKCE
# 上传媒体(图片等)存放位置
media_folder: "public/uploads" # 文件实际写入仓库的此目录
@@ -17,7 +18,7 @@ public_folder: "/uploads" # 站点引用时的 URL 前缀
local_backend: true
# 站点地址(编辑器“在站点查看”跳转用)
site_url: https://shizhui.xyz
site_url: http://8.137.165.96:8080
# 中文界面
locale: zh