mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Add max upload size to nginx (#7358)
This commit is contained in:
		@@ -27,6 +27,9 @@ function update_script() {
 | 
				
			|||||||
    msg_error "No ${APP} Installation Found!"
 | 
					    msg_error "No ${APP} Installation Found!"
 | 
				
			||||||
    exit
 | 
					    exit
 | 
				
			||||||
  fi
 | 
					  fi
 | 
				
			||||||
 | 
					  if ! grep -q "client_max_body_size[[:space:]]\+100M;" /etc/nginx/conf.d/snipeit.conf; then
 | 
				
			||||||
 | 
					    sed -i '/index index.php;/i \        client_max_body_size 100M;' /etc/nginx/conf.d/snipeit.conf
 | 
				
			||||||
 | 
					  fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if check_for_gh_release "snipe-it" "snipe/snipe-it"; then
 | 
					  if check_for_gh_release "snipe-it" "snipe/snipe-it"; then
 | 
				
			||||||
    msg_info "Stopping Services"
 | 
					    msg_info "Stopping Services"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -62,6 +62,7 @@ server {
 | 
				
			|||||||
        listen 80;
 | 
					        listen 80;
 | 
				
			||||||
        root /opt/snipe-it/public;
 | 
					        root /opt/snipe-it/public;
 | 
				
			||||||
        server_name $IPADDRESS;
 | 
					        server_name $IPADDRESS;
 | 
				
			||||||
 | 
					        client_max_body_size 100M;
 | 
				
			||||||
        index index.php;
 | 
					        index index.php;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        location / {
 | 
					        location / {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user