diff --git a/values.yaml b/values.yaml index 0a16ffd..da4b0f1 100644 --- a/values.yaml +++ b/values.yaml @@ -47,7 +47,11 @@ instances: role: agent webName: agent-web-0 # 前端服务名(显式,因为命名不统一:agent-web-0 / ultra-web) webImage: agent-web - webBasePath: /agent-0/ + # 注:webBasePath 不要带尾斜杠!Dockerfile 的 sed `s|/__BASE__|${VITE_BASE_PATH}|g` + # 配合 nginx.conf 的 `location /__BASE__/`(本身已带尾斜杠),再带尾斜杠会拼成 + # /agent-0//(双斜杠)→ 浏览器 ERR_TOO_MANY_REDIRECTS 死循环。 + # sso/ultra 不受影响(它们的 nginx.conf 用硬编码 /sso/,不走 __BASE__ 占位符)。 + webBasePath: /agent-0 serviceId: agent-0 database: agent-db-0 pgStorage: 5Gi @@ -59,7 +63,7 @@ instances: role: edge webName: edge-web-0 webImage: edge-web - webBasePath: /edge-0/ + webBasePath: /edge-0 # 不带尾斜杠(同上,见 agent-0 注释) serviceId: edge-0 database: edge-db-0 pgStorage: 5Gi @@ -67,12 +71,13 @@ instances: affinity: true # 加点位示例(取消注释 + helm upgrade 即生效): + # 注意:webBasePath 不能带尾斜杠,否则 Dockerfile sed 拼出双斜杠 → 重定向死循环 # - name: agent-beijing # image: agent # role: agent # webName: agent-web-beijing # webImage: agent-web - # webBasePath: /agent-beijing/ + # webBasePath: /agent-beijing # serviceId: agent-beijing # database: agent-db-beijing # pgStorage: 5Gi