调整打包部署
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ COPY --from=builder /app/dist /usr/share/nginx/html
|
|||||||
COPY nginx.conf /etc/nginx/templates/default.conf.template
|
COPY nginx.conf /etc/nginx/templates/default.conf.template
|
||||||
|
|
||||||
# 默认后端 API 地址(运行时可通过 -e BACKEND_URL=... 覆盖)
|
# 默认后端 API 地址(运行时可通过 -e BACKEND_URL=... 覆盖)
|
||||||
ENV BACKEND_URL=http://host.docker.internal:8000
|
ENV BACKEND_URL=http://10.100.154.100:8000
|
||||||
|
|
||||||
EXPOSE 8901
|
EXPOSE 8901
|
||||||
|
|
||||||
|
|||||||
+2
-3
@@ -39,12 +39,11 @@ server {
|
|||||||
|
|
||||||
# Bexell 排程 API 反向代理
|
# Bexell 排程 API 反向代理
|
||||||
location /bexapi/ {
|
location /bexapi/ {
|
||||||
proxy_pass https://bexell-scheduling.dongsk.top/api/;
|
proxy_pass http://10.100.154.100:8003/api/;
|
||||||
proxy_set_header Host bexell-scheduling.dongsk.top;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
proxy_ssl_server_name on;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# 鼎捷云 IAM 登录服务反向代理(与 vite.config.ts 中 /iam-api 代理一致)
|
# 鼎捷云 IAM 登录服务反向代理(与 vite.config.ts 中 /iam-api 代理一致)
|
||||||
|
|||||||
Reference in New Issue
Block a user