diff --git a/webapps/nextcloud/files/zzz-apache2-evolinux-custom.ini b/webapps/nextcloud/files/zzz-apache2-evolinux-custom.ini new file mode 100644 index 00000000..361628c2 --- /dev/null +++ b/webapps/nextcloud/files/zzz-apache2-evolinux-custom.ini @@ -0,0 +1,20 @@ +; Put customized values here. +allow_url_fopen = On +disable_functions = exec,shell-exec,system,passthru,popen +disable_functions = +user_ini.filename = ".user.ini" +max_execution_time = 300 + +memory_limit = 512M + +opcache.enable=1 +opcache.enable_cli=1 +opcache.interned_strings_buffer=24 +opcache.max_accelerated_files=60000 +opcache.memory_consumption=512 +opcache.save_comments=1 +opcache.revalidate_freq=1 + + +upload_max_filesize = 2G +post_max_size = 2G \ No newline at end of file diff --git a/webapps/nextcloud/files/zzz-cli-evolinux-custom.ini b/webapps/nextcloud/files/zzz-cli-evolinux-custom.ini new file mode 100644 index 00000000..f6785459 --- /dev/null +++ b/webapps/nextcloud/files/zzz-cli-evolinux-custom.ini @@ -0,0 +1,4 @@ +; Put customized values here. +; default_charset = "ISO-8859-1" +allow_url_fopen = On +apc.enable_cli=1 \ No newline at end of file diff --git a/webapps/nextcloud/tasks/vhost-apache.yml b/webapps/nextcloud/tasks/vhost-apache.yml index 595c283b..b710b07a 100644 --- a/webapps/nextcloud/tasks/vhost-apache.yml +++ b/webapps/nextcloud/tasks/vhost-apache.yml @@ -17,6 +17,30 @@ notify: reload apache tags: - nextcloud + + - name: Enable apache2 php configuration + copy: + src: "zzz-apache2-evolinux-custom.ini" + dest: "/etc/php/7.4/apache2/conf.d/zzz-evolinux-custom.ini" + mode: "0644" + owner: root + group: root + force: yes + notify: reload apache + tags: + - nextcloud + + - name: Enable cli php configuration + copy: + src: "zzz-cli-evolinux-custom.ini" + dest: "/etc/php/7.4/cli/conf.d/zzz-evolinux-custom.ini" + mode: "0644" + owner: root + group: root + force: yes + notify: reload apache + tags: + - nextcloud # - name: Generate ssl config # shell: diff --git a/webapps/nextcloud/templates/apache.conf.j2 b/webapps/nextcloud/templates/apache.conf.j2 index bb41efab..20a4d2eb 100644 --- a/webapps/nextcloud/templates/apache.conf.j2 +++ b/webapps/nextcloud/templates/apache.conf.j2 @@ -28,16 +28,6 @@ RewriteRule ^/(.*) http://%{SERVER_NAME}/$1 [L,R] # PHP - #php_admin_flag engine off - #AddType text/html .html - #php_admin_flag display_errors On - #php_flag short_open_tag On - #php_flag register_globals On - #php_admin_value memory_limit 256M - #php_admin_value max_execution_time 60 - #php_admin_value upload_max_filesize 8M - #php_admin_flag allow_url_fopen Off - #php_value default_charset ISO-8859-15 php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f {{ nextcloud_instance_name }}" php_admin_value open_basedir "/usr/share/php:/home/{{ nextcloud_instance_name }}:/tmp"