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
@@ -64,6 +64,7 @@ services:
init: true
environment:
API_UPSTREAM: http://api-cn:8080 # /v1 反代目标(含 WS /v1/realtime)
ROOT_REDIRECT: /admin/ # 根路径直达(cn=进后台;ov=观众端安全自指)
ports:
# 只绑本机回环:1Panel OpenResty(同宿主机)反代到 127.0.0.1:8088;
# OpenResty 在其它机器时改为 "8088:80" 并配防火墙白名单。