aboutsummaryrefslogtreecommitdiffstats
path: root/roles/nextcloud/defaults/main.yml
blob: 9d55b89916a02b4f57417caefb07605e97f8d104 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
---

nextcloud__package_name: nextcloud-28.0.3
nextcloud__package_dependencies:
  - php-pgsql-8.2.20
  - php-pdo_pgsql-8.2.20
  - ffmpeg
  - p5-Image-ExifTool

nextcloud__db_name: nextcloud
nextcloud__db_user: nextcloud
nextcloud__db_host: 127.0.0.1
nextcloud__db_password: "{{ lookup('ansible.builtin.password', '/dev/null') }}"

nextcloud__admin_name: admin
nextcloud__admin_password: "{{ lookup(
  'ansible.builtin.password', '/dev/null'
  ) }}"

nextcloud__chroot_dir: "{{ httpd_pre__chroot_dir }}/nextcloud"
nextcloud__chroot_data_dir: /nextcloud/data

nextcloud__data_dir: "{{ httpd_pre__chroot_dir }}{{ nextcloud__chroot_data_dir }}"

nextcloud__owned_directories:
  - apps
  - data
  - updater

nextcloud__php_bin: php-8.2
nextcloud__php_service_name: php82_fpm
nextcloud__php_configuration_file: /etc/php-8.2.ini
nextcloud__php_fpm_configuration_file: /etc/php-fpm.ini

nextcloud__perl_libdata_dir: /usr/libdata/perl5

nextcloud__occ_system_settings:
  - option: trusted_domains
    value: "1 --value={{ nextcloud__domain_name }}"
  - option: trusted_domains
    value: "2 --value={{ ansible_host }}"
  - option: skeletondirectory
    value: ""

nextcloud__disabled_apps:
  - firstrunwizard
  - sharebymail

nextcloud__enabled_apps: []
# - encryption

nextcloud__php_fpm_settings:
  # PHP
  - section: www
    option: clear_env
    value: 0

nextcloud__php_memory_limit: 1024M

nextcloud__php_settings:
  # PHP
  - section: PHP
    option: post_max_size
    value: 513M
  - section: PHP
    option: upload_max_filesize
    value: 513M
  - section: PHP
    option: allow_url_fopen
    value: 1
  - section: PHP
    option: memory_limit
    value: "{{ nextcloud__php_memory_limit }}"
  - section: PHP
    option: zend_extension
    value: opcache.so
  # opcache
  - section: opcache
    option: opcache.enable
    value: 1
  - section: opcache
    option: opcache_enable_cli
    value: 1
  - section: opcache
    option: opcache.memory_consumption
    value: 4096
  - section: opcache
    option: opcache.interned_strings_buffer
    value: 64
  - section: opcache
    option: opcache.max_accelerated_files
    value: 10000
  - section: opcache
    option: opcache.revalidate_freq
    value: 1
  - section: opcache
    option: opcache.save_comments
    value: 1
  # modules
  - section: zip
    option: extension
    value: zip.so
  - section: gd
    option: extension
    value: gd.so
  - section: pgsql
    option: extension
    value: pgsql.so
  - section: pdo_pgsql
    option: extension
    value: pdo_pgsql.so
  - section: curl
    option: extension
    value: curl.so
  - section: intl
    option: extension
    value: intl.so
  - section: opcache
    option: extension
    value: opcache.so
  - section: redis
    option: extension
    value: redis.so
  - section: imagick
    option: extension
    value: imagick.so
remember that computers suck.