feat: proxy admin and Next assets via cluster service [deploy]
This commit is contained in:
1 parent
8a28342a81
commit
1ffb91509c
4 files changed
+67
-34
No files matched your search
+4
-2
@@ -1,7 +1,9 @@
|
||||
# CI 中先 pnpm build 产出 dist/;运行时由 nginx 托管,并把 /embed /images /api/contact 反代到 A 站
|
||||
# CI 中先 pnpm build 产出 dist/;运行时由 nginx 托管,并把 admin/embed/api 反代到 A 站
|
||||
FROM nginx:1.27-alpine
|
||||
|
||||
ENV A_UPSTREAM=https://project57.website-build.org
|
||||
# 集群内 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
|
||||
|
||||
# 不走 templates/envsubst,避免把 nginx 的 $host/$uri 清空
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
Reference in new issue
Block a user