fix(deploy): root path redirect to admin (cn) — persisted in template+compose

用户约定:32005 根路径打开即管理后台。之前是直接改在服务器容器配置上的,
历次镜像重建被冲掉——本次固化进仓库:nginx 模板 location = / → 302
${ROOT_REDIRECT};Dockerfile 默认 /admin/;compose 按栈注入(cn=/admin/,
ov=/index.html 观众端安全自指,不影响 /a/<token> 与嵌入路径)。

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
浅念
2026-09-23 13:52:29 +08:00
parent d7ac9420be
commit 7ef27797ff
4 changed files with 12 additions and 0 deletions
+1
View File
@@ -36,6 +36,7 @@ services:
init: true
environment:
API_UPSTREAM: http://api-ov:8081
ROOT_REDIRECT: /index.html # 根路径直达(cn=进后台;ov=观众端安全自指)
ports:
# 同 cn:默认只绑回环供同机 OpenResty 反代(ov 侧主机端口用 8089 区分)。
- "127.0.0.1:8089:80"