diff --git a/conf/extra_php-fpm.conf b/conf/extra_php-fpm.conf index 017da9e..700c37c 100644 --- a/conf/extra_php-fpm.conf +++ b/conf/extra_php-fpm.conf @@ -1,4 +1,4 @@ ; Additional php.ini defines, specific to this pool of workers. -php_admin_value[upload_max_filesize] = 256M -php_admin_value[post_max_size] = 256M +php_admin_value[upload_max_filesize] = 50M +php_admin_value[post_max_size] = 50M diff --git a/conf/nginx.conf b/conf/nginx.conf index c9f262c..e19a4d8 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -7,9 +7,9 @@ location __PATH__/ { index index.php; # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file - client_max_body_size 256M; + client_max_body_size 50M; - try_files $uri __PATH__/index.php$is_args$args; + try_files $uri __PATH__/index.php; location ~ ^/index\.php(/|$) { fastcgi_split_path_info ^(.+?\.php)(/.*)$; diff --git a/scripts/_common.sh b/scripts/_common.sh index 94e5b7a..8094ced 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -11,7 +11,7 @@ YNH_PHP_VERSION=8.1 php_dependencies="php$YNH_PHP_VERSION-fpm" # dependencies used by the app (must be on a single line) -pkg_dependencies="$php_dependencies" +pkg_dependencies="git $php_dependencies" #================================================= # PERSONAL HELPERS