summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2020-05-16 03:20:08 +0200
committerGuilhem Moulin <guilhem@fripost.org>2020-05-16 05:46:03 +0200
commit655e051437391797e0e6a152e650c80b2517a723 (patch)
tree7e91a8ca9b5e4010345e2906d0645a0d0759a886
parent585258e79d8c5a640905c1f05344ca52f614b112 (diff)
nextcloud: Set php values in pool configuration.
-rw-r--r--roles/nextcloud/files/etc/nginx/sites-available/nextcloud4
-rw-r--r--roles/nextcloud/files/etc/php/fpm/pool.d/nextcloud.conf7
2 files changed, 7 insertions, 4 deletions
diff --git a/roles/nextcloud/files/etc/nginx/sites-available/nextcloud b/roles/nextcloud/files/etc/nginx/sites-available/nextcloud
index f1f4b66..d9dba5e 100644
--- a/roles/nextcloud/files/etc/nginx/sites-available/nextcloud
+++ b/roles/nextcloud/files/etc/nginx/sites-available/nextcloud
@@ -72,10 +72,6 @@ server {
fastcgi_param front_controller_active true;
fastcgi_intercept_errors on;
fastcgi_request_buffering off;
- fastcgi_param PHP_VALUE "upload_max_filesize=512M
- post_max_size=512M
- memory_limit=512M";
- fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root:/var/www/nextcloud:/mnt/nextcloud-data:/etc/nextcloud:/var/cache/nextcloud:/var/log/nextcloud:/usr/share/php:/tmp:/dev";
fastcgi_pass unix:/run/php/php7.3-fpm@nextcloud.sock;
}
diff --git a/roles/nextcloud/files/etc/php/fpm/pool.d/nextcloud.conf b/roles/nextcloud/files/etc/php/fpm/pool.d/nextcloud.conf
index dfbb8bf..eb92adb 100644
--- a/roles/nextcloud/files/etc/php/fpm/pool.d/nextcloud.conf
+++ b/roles/nextcloud/files/etc/php/fpm/pool.d/nextcloud.conf
@@ -10,6 +10,13 @@ pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
+
+php_value[upload_max_filesize] = 512M
+php_value[post_max_size] = 512M
+php_value[memory_limit] = 512M
+
+php_admin_value[open_basedir] = /usr/local/share/nextcloud:/var/www/nextcloud:/mnt/nextcloud-data:/etc/nextcloud:/var/cache/nextcloud:/var/log/nextcloud:/usr/share/php:/tmp:/dev
+
env[HOSTNAME] = $HOSTNAME
env[PATH] = /usr/bin:/bin
env[TMP] = /tmp