From 3196c0d95426c732cebfdb92b48e378c57ef9d03 Mon Sep 17 00:00:00 2001 From: Saeed Vaziry Date: Fri, 20 Jun 2025 13:32:50 +0200 Subject: [PATCH] fix installer --- scripts/install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/install.sh b/scripts/install.sh index 1ae9a9a7..a440ac48 100644 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -100,6 +100,9 @@ service php${V_PHP_VERSION}-fpm enable service php${V_PHP_VERSION}-fpm start apt install -y php${V_PHP_VERSION}-ssh2 service php${V_PHP_VERSION}-fpm restart +sed -i "s/memory_limit = .*/memory_limit = 1G/" /etc/php/${V_PHP_VERSION}/fpm/php.ini +sed -i "s/upload_max_filesize = .*/upload_max_filesize = 1G/" /etc/php/${V_PHP_VERSION}/fpm/php.ini +sed -i "s/post_max_size = .*/post_max_size = 1G/" /etc/php/${V_PHP_VERSION}/fpm/php.ini # composer curl -sS https://getcomposer.org/installer -o composer-setup.php @@ -118,6 +121,8 @@ server { add_header X-Frame-Options \"SAMEORIGIN\"; add_header X-Content-Type-Options \"nosniff\"; + client_max_body_size 100M; + index index.php; charset utf-8;