From de361e24f6222df87cd9746f86ea3be423b73fcf Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 24 Feb 2026 02:44:46 -0800 Subject: [PATCH] =?UTF-8?q?fix(infra):=20=E7=BD=91=E5=85=B3=20nginx=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20snapshot-api=20=E4=BB=A3=E7=90=86=20+=20ad?= =?UTF-8?q?min-web=20=E9=85=8D=E7=BD=AE=20SNAPSHOT=5FSERVICE=5FURL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- backend/api-gateway/nginx/rwaapi.szaiai.com.conf | 13 +++++++++++++ frontend/admin-web/docker-compose.yml | 1 + 2 files changed, 14 insertions(+) diff --git a/backend/api-gateway/nginx/rwaapi.szaiai.com.conf b/backend/api-gateway/nginx/rwaapi.szaiai.com.conf index 4fee8131..ecfa2ea7 100644 --- a/backend/api-gateway/nginx/rwaapi.szaiai.com.conf +++ b/backend/api-gateway/nginx/rwaapi.szaiai.com.conf @@ -65,6 +65,19 @@ server { client_max_body_size 500M; # 反向代理到 Kong API Gateway + + # Snapshot Service 代理 (admin-web Next.js rewrites 使用) + location /snapshot-api/ { + proxy_pass http://192.168.1.111:3099/; + proxy_http_version 1.1; + 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_connect_timeout 30s; + proxy_send_timeout 300s; + proxy_read_timeout 300s; + } location / { proxy_pass http://127.0.0.1:8000; proxy_http_version 1.1; diff --git a/frontend/admin-web/docker-compose.yml b/frontend/admin-web/docker-compose.yml index 905b572b..63d87f1f 100644 --- a/frontend/admin-web/docker-compose.yml +++ b/frontend/admin-web/docker-compose.yml @@ -12,6 +12,7 @@ services: - TZ=Asia/Shanghai - NODE_ENV=production - NEXT_TELEMETRY_DISABLED=1 + - SNAPSHOT_SERVICE_URL=https://rwaapi.szaiai.com/snapshot-api healthcheck: test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"] interval: 30s