1 |
diff -Nur smeserver-nextcloud-1.1.0.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud smeserver-nextcloud-1.1.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud |
2 |
--- smeserver-nextcloud-1.1.0.old/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud 2019-01-07 19:05:19.057000000 -0500 |
3 |
+++ smeserver-nextcloud-1.1.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud 2019-01-07 19:07:20.955000000 -0500 |
4 |
@@ -4,6 +4,8 @@ |
5 |
if (($nextcloud{'status'} || 'disabled') eq 'enabled'){ |
6 |
my $max_upload_size = ($nextcloud{MaxUploadSize} || '4096'); |
7 |
$max_upload_size .= 'M' if ($max_upload_size =~ m/^\d+$/); |
8 |
+ my $memory_limit = ($nextcloud{MemoryLimit} || '512M'); |
9 |
+ $memory_limit .= 'M' if ($memory_limit =~ m/^\d+$/); |
10 |
my $id = 'nextcloud'; |
11 |
$OUT .=<<_EOF; |
12 |
|
13 |
@@ -30,7 +32,7 @@ |
14 |
php_admin_flag[display_errors] = off |
15 |
php_admin_flag[log_errors] = on |
16 |
php_admin_value[error_log] = syslog |
17 |
-php_admin_value[memory_limit] = 128M |
18 |
+php_admin_value[memory_limit] = $memory_limit |
19 |
php_admin_value[max_execution_time] = 3600 |
20 |
php_admin_value[post_max_size] = $max_upload_size |
21 |
php_admin_value[upload_max_filesize] = $max_upload_size |