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