aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/nextcloud/tasks/main.yml11
-rw-r--r--roles/nextcloud/templates/nextcloud.conf.httpd.j22
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
remember that computers suck.