mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-04-27 03:55:14 +00:00
Fix Script: Alpine Nextcloud Upload File Size Limit (#933)
* Max File Size * Small changes
This commit is contained in:
parent
72df7e432d
commit
55e02d8bdd
@ -103,6 +103,8 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
server_name localhost;
|
server_name localhost;
|
||||||
|
client_max_body_size 16G;
|
||||||
|
fastcgi_read_timeout 120s;
|
||||||
}
|
}
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
@ -127,6 +129,8 @@ server {
|
|||||||
fastcgi_pass unix:/run/nextcloud/fastcgi.sock; # From the nextcloud-initscript package
|
fastcgi_pass unix:/run/nextcloud/fastcgi.sock; # From the nextcloud-initscript package
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
include fastcgi.conf;
|
include fastcgi.conf;
|
||||||
|
fastcgi_read_timeout 120s;
|
||||||
|
client_max_body_size 16G;
|
||||||
}
|
}
|
||||||
location ^~ /.well-known/carddav { return 301 /remote.php/dav/; }
|
location ^~ /.well-known/carddav { return 301 /remote.php/dav/; }
|
||||||
location ^~ /.well-known/caldav { return 301 /remote.php/dav/; }
|
location ^~ /.well-known/caldav { return 301 /remote.php/dav/; }
|
||||||
@ -135,6 +139,7 @@ server {
|
|||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
sed -i -e 's|memory_limit = 128M|memory_limit = 512M|; $aapc.enable_cli=1' /etc/php83/php.ini
|
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
|
sed -i -E '/^php_admin_(flag|value)\[opcache/s/^/;/' /etc/php83/php-fpm.d/nextcloud.conf
|
||||||
msg_ok "Installed Nextcloud"
|
msg_ok "Installed Nextcloud"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user