/[smecontribs]/rpms/smeserver-nextcloud/contribs9/smeserver-nextcloud-1.1.0.bz11083-phpbasedir.patch
ViewVC logotype

Contents of /rpms/smeserver-nextcloud/contribs9/smeserver-nextcloud-1.1.0.bz11083-phpbasedir.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sun Nov 8 16:42:11 2020 UTC (4 years ago) by jpp
Branch: MAIN
CVS Tags: smeserver-nextcloud-1_1_0-19_el6_sme, smeserver-nextcloud-1_1_0-17_el6_sme, smeserver-nextcloud-1_1_0-20_el6_sme, smeserver-nextcloud-1_1_0-18_el6_sme, smeserver-nextcloud-1_1_0-21_el6_sme, HEAD
* Sun Nov 08 2020 Jean-Philipe Pialasse <tests@pialasse.com> 1.1.0-17.sme
- use php73-fpm [SME: 11003]
- Require php-gmp for Nextcloud 19 and newer [SME: 11004]
- add phpbasedir support so you can add individual access to dir or files [SME: 11083]
  simply use nextcloud PHPBaseDir property

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed