fix: proxy admin via A public host, ClusterIP port 80 refused [deploy]
CI Pipeline / check-commit (push) Successful in 5s
CI Pipeline / deploy-only (push) Has been skipped
CI Pipeline / build (push) Successful in 20s
CI Pipeline / deploy (push) Successful in 17s

This commit is contained in:
mdszxy committed 2026-10-06 00:30:08 +08:00
1 parent 1ffb91509c
commit 74dd730e19
4 files changed
+23 -24

No files matched your search

+2 -4
View File
@@ -1,11 +1,9 @@
# CI 中先 pnpm build 产出 dist/;运行时由 nginx 托管,并把 admin/embed/api 反代到 A 站
FROM nginx:1.27-alpine
# 集群内 A 站 Service(port 80 -> container 3000)
ENV A_UPSTREAM=http://project57-svc.ns-project57.svc.cluster.local:80
ENV A_PUBLIC=https://project57.website-build.org
# 走 A 站公网(集群内 project57-svc:80 当前 Connection refused)
ENV A_UPSTREAM=https://project57.website-build.org
# 不走 templates/envsubst,避免把 nginx 的 $host/$uri 清空
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY docker-entrypoint.d/40-a-upstream.sh /docker-entrypoint.d/40-a-upstream.sh
RUN sed -i 's/\r$//' /docker-entrypoint.d/40-a-upstream.sh \