diff --git a/conf/nginx.conf b/conf/nginx.conf index 48c1c67..575549d 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -16,6 +16,8 @@ location YNH_EXAMPLE_PATH { # Set max upload size client_max_body_size YNH_FILE_SIZE; + client_body_timeout 30m; + proxy_read_timeout 30m; fastcgi_buffers 64 4K; # Disable gzip to avoid the removal of the ETag header diff --git a/scripts/install b/scripts/install index 0b3891e..40391b0 100644 --- a/scripts/install +++ b/scripts/install @@ -123,11 +123,10 @@ sudo sed -i "/# $app/d" /etc/hosts # if app is private, remove url to SSOWat conf from skipped_uris if [ "$is_public" = "No" ]; then - ynh_app_setting_delete "$app" unprotected_uris # escape magic chars in vars (lua magic chars are ().%+-*?[^$ according to https://www.lua.org/pil/20.2.html) domainluaregex=$(echo "$domain" | sed -e 's/[]().%+*?[^$[]/\%&/g' | sed -e 's/\-/\%&/g') pathluaregex=$([ "$path" == "/" ] || echo "$path" | sed -e 's/[]().%+*?[^$[]/\%&/g' | sed -e 's/\-/\%&/g') - regexList="${domainluaregex}${pathluaregex}/index.php%?f=.+$","${domainluaregex}${pathluaregex}/index.php%?zipfolder=.+$","${domainluaregex}${pathluaregex}/private/temp/.+%.zip$","${domainluaregex}${pathluaregex}/core/js/.*$","${domainluaregex}${pathluaregex}/templates/.*$" - ynh_app_setting_set "$app" unprotected_regex "$regexList" + regexList="${domainluaregex}${pathluaregex}/index%.php$","${domainluaregex}${pathluaregex}/index%.php%?p=.*$" + ynh_app_setting_set "$app" protected_regex "$regexList" sudo yunohost app ssowatconf fi