Skip to content

Commit 55e02d8

Browse files
Fix Script: Alpine Nextcloud Upload File Size Limit (#933)
* Max File Size * Small changes
1 parent 72df7e4 commit 55e02d8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

install/alpine-nextcloud-install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ server {
103103
listen 80;
104104
return 301 https://$host$request_uri;
105105
server_name localhost;
106+
client_max_body_size 16G;
107+
fastcgi_read_timeout 120s;
106108
}
107109
server {
108110
listen 443 ssl http2;
@@ -127,6 +129,8 @@ server {
127129
fastcgi_pass unix:/run/nextcloud/fastcgi.sock; # From the nextcloud-initscript package
128130
fastcgi_index index.php;
129131
include fastcgi.conf;
132+
fastcgi_read_timeout 120s;
133+
client_max_body_size 16G;
130134
}
131135
location ^~ /.well-known/carddav { return 301 /remote.php/dav/; }
132136
location ^~ /.well-known/caldav { return 301 /remote.php/dav/; }
@@ -135,6 +139,7 @@ server {
135139
}
136140
EOF
137141
sed -i -e 's|memory_limit = 128M|memory_limit = 512M|; $aapc.enable_cli=1' /etc/php83/php.ini
142+
sed -i -e 's|upload_max_file_size = 2M|upload_max_file_size = 16G|' /etc/php83/php.ini
138143
sed -i -E '/^php_admin_(flag|value)\[opcache/s/^/;/' /etc/php83/php-fpm.d/nextcloud.conf
139144
msg_ok "Installed Nextcloud"
140145

0 commit comments

Comments
 (0)