From d31ac4fba519c039583ff63383ae37cae64b514f Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Thu, 19 Dec 2024 16:03:01 +0100 Subject: [PATCH 1/2] Max File Size --- install/alpine-nextcloud-install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install/alpine-nextcloud-install.sh b/install/alpine-nextcloud-install.sh index 665e89921..61f72f06f 100644 --- a/install/alpine-nextcloud-install.sh +++ b/install/alpine-nextcloud-install.sh @@ -103,6 +103,7 @@ server { listen 80; return 301 https://$host$request_uri; server_name localhost; + client_max_body_size 20M; } server { listen 443 ssl http2; @@ -135,6 +136,7 @@ server { } EOF sed -i -e 's|memory_limit = 128M|memory_limit = 512M|; $aapc.enable_cli=1' /etc/php83/php.ini +sed -i -e 's|upload_max_file_size = 2M|upload_max_file_size = 16G' /etc/php83/php.ini sed -i -E '/^php_admin_(flag|value)\[opcache/s/^/;/' /etc/php83/php-fpm.d/nextcloud.conf msg_ok "Installed Nextcloud" From 278adaeed22d9649adb8f835e60d00811ad95c6d Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Thu, 19 Dec 2024 16:18:25 +0100 Subject: [PATCH 2/2] Small changes --- install/alpine-nextcloud-install.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install/alpine-nextcloud-install.sh b/install/alpine-nextcloud-install.sh index 61f72f06f..3fe273b28 100644 --- a/install/alpine-nextcloud-install.sh +++ b/install/alpine-nextcloud-install.sh @@ -103,7 +103,8 @@ server { listen 80; return 301 https://$host$request_uri; server_name localhost; - client_max_body_size 20M; + client_max_body_size 16G; + fastcgi_read_timeout 120s; } server { listen 443 ssl http2; @@ -128,6 +129,8 @@ server { fastcgi_pass unix:/run/nextcloud/fastcgi.sock; # From the nextcloud-initscript package fastcgi_index index.php; include fastcgi.conf; + fastcgi_read_timeout 120s; + client_max_body_size 16G; } location ^~ /.well-known/carddav { return 301 /remote.php/dav/; } location ^~ /.well-known/caldav { return 301 /remote.php/dav/; } @@ -136,7 +139,7 @@ server { } EOF sed -i -e 's|memory_limit = 128M|memory_limit = 512M|; $aapc.enable_cli=1' /etc/php83/php.ini -sed -i -e 's|upload_max_file_size = 2M|upload_max_file_size = 16G' /etc/php83/php.ini +sed -i -e 's|upload_max_file_size = 2M|upload_max_file_size = 16G|' /etc/php83/php.ini sed -i -E '/^php_admin_(flag|value)\[opcache/s/^/;/' /etc/php83/php-fpm.d/nextcloud.conf msg_ok "Installed Nextcloud"