diff options
author | binary <me@rgoncalves.se> | 2021-01-24 22:06:55 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2021-01-24 22:06:55 +0100 |
commit | a0b7a11cb90507e60ed02783ef79a9dbaa520682 (patch) | |
tree | f07de1886af083e87c60f66e4d8df2203f9204a7 /roles/nextcloud | |
parent | 159f7c2295922081c6d6cdfd109c8c77a7212ff5 (diff) | |
download | infrastructure-a0b7a11cb90507e60ed02783ef79a9dbaa520682.tar.gz |
Filesize upload up to 100M
Diffstat (limited to 'roles/nextcloud')
-rw-r--r-- | roles/nextcloud/tasks/main.yml | 11 | ||||
-rw-r--r-- | roles/nextcloud/templates/nextcloud.conf.httpd.j2 | 2 |
2 files changed, 13 insertions, 0 deletions
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 |