|
|
|
@ -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"; |
|
|
|
|