Browse Source

nginx 设置文件上传大小 100M

wanyuan 11 months ago
parent
commit
d07a24d172
1 changed files with 2 additions and 0 deletions
  1. 2 0
      docker-dev/nginx_https_1_25_1/conf/conf.d/default.conf

+ 2 - 0
docker-dev/nginx_https_1_25_1/conf/conf.d/default.conf

@@ -27,6 +27,8 @@ server {
     }
     }
 
 
     location ^~ /apis/ {
     location ^~ /apis/ {
+        client_max_body_size 100M;
+        client_body_buffer_size 100M;
         proxy_pass  http://shengtai_http_app:8080/apis/;
         proxy_pass  http://shengtai_http_app:8080/apis/;
         proxy_http_version 1.1;
         proxy_http_version 1.1;
         proxy_set_header Upgrade $http_upgrade;
         proxy_set_header Upgrade $http_upgrade;