diff --git a/Dockerfile b/Dockerfile index affb8a6..3699d59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/nginx.conf b/nginx.conf index c00a01b..d1671c3 100644 --- a/nginx.conf +++ b/nginx.conf @@ -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 代理一致)