spring boot swagger ui使用 nginx 部署后无法使用问题

location /saleapi/ {
## 指定HOST
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_pass http://saleapiserver;
}

posted @ 2019-08-27 19:51  wujf  阅读(906)  评论(0编辑  收藏  举报