⚡: improve nextcloud config
All checks were successful
ansible-lint / lint-everything (push) Successful in 5s
All checks were successful
ansible-lint / lint-everything (push) Successful in 5s
This commit is contained in:
@@ -28,9 +28,9 @@
|
|||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
state: directory
|
state: directory
|
||||||
dest: "{{ nextcloud_app_home }}/{{ item }}"
|
dest: "{{ nextcloud_app_home }}/{{ item }}"
|
||||||
owner: root
|
owner: www-data
|
||||||
group: www-data
|
group: www-data
|
||||||
mode: "g+w"
|
mode: "a-rwx,u+rwX,g+rX"
|
||||||
recurse: true
|
recurse: true
|
||||||
loop: "{{ nextcloud_writable_app_dirs }}"
|
loop: "{{ nextcloud_writable_app_dirs }}"
|
||||||
|
|
||||||
|
@@ -53,7 +53,7 @@ server {
|
|||||||
add_header X-Download-Options "noopen" always;
|
add_header X-Download-Options "noopen" always;
|
||||||
add_header X-Frame-Options "SAMEORIGIN" always;
|
add_header X-Frame-Options "SAMEORIGIN" always;
|
||||||
add_header X-Permitted-Cross-Domain-Policies "none" always;
|
add_header X-Permitted-Cross-Domain-Policies "none" always;
|
||||||
add_header X-Robots-Tag "none" always;
|
add_header X-Robots-Tag "noindex,nofollow" always;
|
||||||
add_header X-XSS-Protection "1; mode=block" always;
|
add_header X-XSS-Protection "1; mode=block" always;
|
||||||
|
|
||||||
# Remove X-Powered-By, which is an information leak
|
# Remove X-Powered-By, which is an information leak
|
||||||
|
@@ -1797,10 +1797,10 @@ ldap.max_links = -1
|
|||||||
;opcache.enable_cli=0
|
;opcache.enable_cli=0
|
||||||
|
|
||||||
; The OPcache shared memory storage size.
|
; The OPcache shared memory storage size.
|
||||||
;opcache.memory_consumption=128
|
opcache.memory_consumption=256
|
||||||
|
|
||||||
; The amount of memory for interned strings in Mbytes.
|
; The amount of memory for interned strings in Mbytes.
|
||||||
;opcache.interned_strings_buffer=8
|
opcache.interned_strings_buffer=16
|
||||||
|
|
||||||
; The maximum number of keys (scripts) in the OPcache hash table.
|
; The maximum number of keys (scripts) in the OPcache hash table.
|
||||||
; Only numbers between 200 and 1000000 are allowed.
|
; Only numbers between 200 and 1000000 are allowed.
|
||||||
|
@@ -9,3 +9,4 @@ pm.max_children = 100
|
|||||||
pm.start_servers = 10
|
pm.start_servers = 10
|
||||||
pm.min_spare_servers = 10
|
pm.min_spare_servers = 10
|
||||||
pm.max_spare_servers = 30
|
pm.max_spare_servers = 30
|
||||||
|
clear_env = no
|
||||||
|
Reference in New Issue
Block a user