From a0b7a11cb90507e60ed02783ef79a9dbaa520682 Mon Sep 17 00:00:00 2001 From: binary Date: Sun, 24 Jan 2021 22:06:55 +0100 Subject: Filesize upload up to 100M --- roles/nextcloud/tasks/main.yml | 11 +++++++++++ roles/nextcloud/templates/nextcloud.conf.httpd.j2 | 2 ++ 2 files changed, 13 insertions(+) (limited to 'roles/nextcloud') diff --git a/roles/nextcloud/tasks/main.yml b/roles/nextcloud/tasks/main.yml index 69ffb87..6d1230d 100644 --- a/roles/nextcloud/tasks/main.yml +++ b/roles/nextcloud/tasks/main.yml @@ -24,6 +24,17 @@ loop: - extension=curl - extension=pdo_pgsql + - extension=intl + +- name: ensure other config are corrects in php-fpm + lineinfile: + path: /etc/php-7.3.ini + regexp: "^{{ item[0] }}*" + line: "{{ item[0] }}={{ item[1] }}" + loop: + - [ "allow_url_fopen", "On" ] + - [ "upload_max_filesize", "100M" ] + - [ "post_max_size", "100M" ] - name: copy configuration for domain name and tls in chroot shell: | diff --git a/roles/nextcloud/templates/nextcloud.conf.httpd.j2 b/roles/nextcloud/templates/nextcloud.conf.httpd.j2 index 8ba5e45..bcf923d 100644 --- a/roles/nextcloud/templates/nextcloud.conf.httpd.j2 +++ b/roles/nextcloud/templates/nextcloud.conf.httpd.j2 @@ -4,6 +4,8 @@ server "cloud.{{ global.domain_name }}" { root "/nextcloud" directory index index.php + connection max request body 10485760 + hsts max-age 15768000 # deny access to confidential data/programs first -- cgit v1.2.3