调整打包部署

This commit is contained in:
2026-09-01 18:52:39 +08:00
parent d07ada995f
commit dc4da05083
2 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/templates/default.conf.template
# 默认后端 API 地址(运行时可通过 -e BACKEND_URL=... 覆盖)
ENV BACKEND_URL=http://host.docker.internal:8000
ENV BACKEND_URL=http://10.100.154.100:8000
EXPOSE 8901
+2 -3
View File
@@ -39,12 +39,11 @@ server {
# Bexell 排程 API 反向代理
location /bexapi/ {
proxy_pass https://bexell-scheduling.dongsk.top/api/;
proxy_set_header Host bexell-scheduling.dongsk.top;
proxy_pass http://10.100.154.100:8003/api/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_ssl_server_name on;
}
# 鼎捷云 IAM 登录服务反向代理(与 vite.config.ts 中 /iam-api 代理一致)