From dc4da050839ac4d472d2d7a262927aea94bbfbdf Mon Sep 17 00:00:00 2001 From: dongsk Date: Tue, 1 Sep 2026 18:52:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=89=93=E5=8C=85=E9=83=A8?= =?UTF-8?q?=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- nginx.conf | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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 代理一致)