diff --git a/ct/snipeit.sh b/ct/snipeit.sh index 3f93f2f70..64b9b10f2 100644 --- a/ct/snipeit.sh +++ b/ct/snipeit.sh @@ -27,6 +27,9 @@ function update_script() { msg_error "No ${APP} Installation Found!" exit 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 msg_info "Stopping Services" diff --git a/install/snipeit-install.sh b/install/snipeit-install.sh index 102bb5844..a3e9a268d 100644 --- a/install/snipeit-install.sh +++ b/install/snipeit-install.sh @@ -62,6 +62,7 @@ server { listen 80; root /opt/snipe-it/public; server_name $IPADDRESS; + client_max_body_size 100M; index index.php; location / {