fix(admin): 后台后端改博客域同源反代——绕开 git 域 522
git.wait4x.online 公网 522(源站侧待查)卡死 Sveltia 登录。 config.yml backend 改 base_url=https://wait4x.online/gitea + api_root=.../api/v1;新增运维脚本给博客 vhost 加 /gitea/ 反代 →127.0.0.1:13020(Host 伪 git 域、no-store、noindex;幂等+-t 门 禁+回滚+双口径终验)。同源后 CORS 问题一并消失。 验证: yaml 解析过;pnpm astro build;bash -n 过 Spec: none (后台可用性修复) Co-authored-by: GLM-5.3
This commit is contained in:
1 parent
de42fed52e
commit
5be09b6f32
2 files changed
+64
-2
No files matched your search
@@ -5,8 +5,10 @@ backend:
|
||||
name: gitea
|
||||
repo: wait4x/blog
|
||||
branch: main
|
||||
base_url: https://git.wait4x.online
|
||||
api_root: https://git.wait4x.online/api/v1
|
||||
# 走博客域同源反代(nginx /gitea/ → 127.0.0.1:13020):
|
||||
# ①绕开 git.wait4x.online 的 ESA 522 ②同源无 CORS ③ESA 缓存规则已排除 /artalk/api
|
||||
base_url: https://wait4x.online/gitea
|
||||
api_root: https://wait4x.online/gitea/api/v1
|
||||
|
||||
media_folder: content/photos
|
||||
site_url: https://wait4x.online
|
||||
|
||||
Reference in new issue
Block a user