同一台服务器,前端部署在nginx,在上传33M的文件时,耗时36s,但是通过IIS或者swagger上传文件,只需要8s
解决方案:将Nginx配置文件中 proxy_pass http://139.196.154.85:54730/; 改为localhost : proxy_pass http://localhost:54730/;
此方案只适用于 前后端部署在同一台服务器的情况
同一台服务器,前端部署在nginx,在上传33M的文件时,耗时36s,但是通过IIS或者swagger上传文件,只需要8s
解决方案:将Nginx配置文件中 proxy_pass http://139.196.154.85:54730/; 改为localhost : proxy_pass http://localhost:54730/;
此方案只适用于 前后端部署在同一台服务器的情况