原因:swagge开放的不能只有swagger-ui.html
解决:代理转发swagger-ui.html相关路径
location /swagger-ui.html {
proxy_pass http://172.18.0.2:8093;
index index.html index.htm;
}
location /webjars {
proxy_pass http://172.18.0.2:8093;
index index.html index.htm;
}
location /swagger-resources {
proxy_pass http://172.18.0.2:8093;
index index.html index.htm;
}
location /v2 {
proxy_pass http://172.18.0.2:8093;
index index.html index.htm;
}