diff --git a/frontend/mining-admin-web/nginx/madmin.szaiai.com.conf b/frontend/mining-admin-web/nginx/madmin.szaiai.com.conf index f00ebf13..265e2865 100644 --- a/frontend/mining-admin-web/nginx/madmin.szaiai.com.conf +++ b/frontend/mining-admin-web/nginx/madmin.szaiai.com.conf @@ -61,10 +61,11 @@ server { add_header Referrer-Policy "strict-origin-when-cross-origin" always; # ========================================================================== - # API 代理到 mining-admin-service (端口 3023) + # API 代理到 Next.js (端口 3100), 由 Next.js rewrite 分发到各后端服务 + # 不直连 mining-admin-service, 因为 /api/trading 和 /api/mining 需要路由到不同服务 # ========================================================================== location /api/ { - proxy_pass http://127.0.0.1:3023/; + proxy_pass http://127.0.0.1:3100; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;