Nginx 转发 swagger 请求

951 阅读1分钟

nginx 配置文件中的添加如下配置

location  ~* ^(/v2|/webjars|/swagger-resources|/swagger-ui.html)
{

    proxy_pass http://localhost:8080;

}