From 33dbda54579ada1781fc305af2fcb6183b9ae909 Mon Sep 17 00:00:00 2001 From: colin Date: Thu, 10 Oct 2024 15:38:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(nginx):=20=E4=BF=AE=E5=A4=8Dnginx=E8=BD=AC?= =?UTF-8?q?=E5=8F=91=E8=B7=AF=E5=BE=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/vue/docker/nginx/default.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/vue/docker/nginx/default.conf b/apps/vue/docker/nginx/default.conf index 0956b8c9c..e04d3235b 100644 --- a/apps/vue/docker/nginx/default.conf +++ b/apps/vue/docker/nginx/default.conf @@ -24,22 +24,22 @@ server { } location /connect/ { - proxy_pass http://auth-server:44385/; + proxy_pass http://auth-server:44385$request_uri; proxy_set_header Host auth-server:44385; } location ~ /api/files/static/ { # 当path参数存在子路径时 不能让nginx解码 / 符号 - proxy_pass http://apigateway:30000; + proxy_pass http://apigateway:30000$request_uri; } location /api/ { - proxy_pass http://apigateway:30000/; + proxy_pass http://apigateway:30000$request_uri; proxy_set_header Host $host; } location ^~/wapi/ { - proxy_pass http://www.nmc.cn/; + proxy_pass http://www.nmc.cn$request_uri; proxy_set_header Host www.nmc.cn; proxy_set_header Referer http://www.nmc.cn; proxy_set_header X-Real-IP $remote_addr; @@ -48,7 +48,7 @@ server { } location /signalr-hubs/ { - proxy_pass http://apigateway:30000/; + proxy_pass http://apigateway:30000$request_uri; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade";