From 8830b2e43bd2190d3a5b88411b9a547166104ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sun, 25 Feb 2024 21:29:33 +0100 Subject: [PATCH] Cleanup --- conf/nginx.conf | 4 ++-- scripts/remove | 2 -- scripts/upgrade | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index 2dcc8e9..525b40a 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -12,11 +12,11 @@ location __PATH__/ { index index.php; - # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file + # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file client_max_body_size 50M; try_files $uri $uri/ __PATH__/index.php; - + location ~ [^/]\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; fastcgi_pass unix:/var/run/php/php__PHPVERSION__-fpm-__NAME__.sock; diff --git a/scripts/remove b/scripts/remove index 5b17c2d..a6a8ac5 100644 --- a/scripts/remove +++ b/scripts/remove @@ -14,10 +14,8 @@ source /usr/share/yunohost/helpers #================================================= ynh_script_progression --message="Removing system configurations related to $app..." --weight=1 -# Remove the dedicated NGINX config ynh_remove_nginx_config -# Remove the dedicated PHP-FPM config ynh_remove_fpm_config #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 15ee0a5..3564ab0 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -31,10 +31,8 @@ chown -R "$app:www-data" "$install_dir" #================================================= ynh_script_progression --message="Upgrading system configurations related to $app..." --weight=1 -# Create a dedicated NGINX config ynh_add_nginx_config -# Create a dedicated PHP-FPM config ynh_add_fpm_config --usage=low --footprint=low #=================================================