|  | @@ -42,6 +42,7 @@ security:
 | 
	
		
			
				|  |  |          location /ws {
 | 
	
		
			
				|  |  |                   proxy_pass http://api;
 | 
	
		
			
				|  |  |                   proxy_http_version 1.1;
 | 
	
		
			
				|  |  | +                 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 | 
	
		
			
				|  |  |                   proxy_set_header Upgrade $http_upgrade;
 | 
	
		
			
				|  |  |                   proxy_set_header Connection "upgrade";
 | 
	
		
			
				|  |  |                   proxy_set_header Host $host;
 | 
	
	
		
			
				|  | @@ -50,5 +51,14 @@ security:
 | 
	
		
			
				|  |  |          proxy_set_header X-Local-Ip $host;
 | 
	
		
			
				|  |  |          proxy_set_header X-Local-Port $server_port;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    3.3 重新加载配置文件:
 | 
	
		
			
				|  |  | +    3.3 修改http下配置 client_max_body_size 大小
 | 
	
		
			
				|  |  | +        client_max_body_size 2048M;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    3.4 重新加载配置文件:
 | 
	
		
			
				|  |  |          在nginx的安装目录下的sbin目录执行命令: ./nginx -s reload
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +4.修改上传文件大小-在nacos application-dev.yml中修改
 | 
	
		
			
				|  |  | +    spring:
 | 
	
		
			
				|  |  | +        servlet:
 | 
	
		
			
				|  |  | +            multipart:
 | 
	
		
			
				|  |  | +              max-file-size: 2048MB
 |