1 |
jpp |
1.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 2020-11-08 11:36:59.801000000 -0500 |
3 |
|
|
+++ smeserver-nextcloud-1.1.0/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Nextcloud 2020-11-08 11:39:22.353000000 -0500 |
4 |
|
|
@@ -6,6 +6,8 @@ |
5 |
|
|
$max_upload_size .= 'M' if ($max_upload_size =~ m/^\d+$/); |
6 |
|
|
my $memory_limit = ($nextcloud{MemoryLimit} || '512M'); |
7 |
|
|
$memory_limit .= 'M' if ($memory_limit =~ m/^\d+$/); |
8 |
|
|
+ my $open_basedir= $nextcloud{PHPBaseDir} || ''; |
9 |
|
|
+ $open_basedir = "/usr/share/nextcloud:/var/lib/nextcloud:/var/log/nextcloud.log:/var/lib/php/nextcloud:/home/e-smith/files/nextcloud:/dev/urandom:/proc/meminfo:$open_basedir"; |
10 |
|
|
my $id = 'nextcloud'; |
11 |
|
|
$OUT .=<<_EOF; |
12 |
|
|
|
13 |
|
|
@@ -37,7 +39,7 @@ |
14 |
|
|
php_admin_value[post_max_size] = $max_upload_size |
15 |
|
|
php_admin_value[upload_max_filesize] = $max_upload_size |
16 |
|
|
php_admin_value[disable_functions] = system, show_source, symlink, exec, dl, shell_exec, passthru, phpinfo, escapeshellarg, escapeshellcmd |
17 |
|
|
-php_admin_value[open_basedir] = /usr/share/nextcloud:/var/lib/nextcloud:/var/log/nextcloud.log:/var/lib/php/nextcloud:/home/e-smith/files/nextcloud:/dev/urandom:/proc/meminfo |
18 |
|
|
+php_admin_value[open_basedir] = $open_basedir |
19 |
|
|
php_admin_flag[allow_url_fopen] = on |
20 |
|
|
php_admin_flag[file_upload] = on |
21 |
|
|
php_admin_flag[session.cookie_httponly] = on |