roles/nextcloud: Use Redis for caching
The Nextcloud community [recommends][0] using Redis as a cache provider, to improve response times and file locking reliability.
This commit is contained in:
@@ -1,4 +1,7 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
|
- role: redis
|
||||||
|
tags:
|
||||||
|
- redis
|
||||||
- role: cert
|
- role: cert
|
||||||
vars:
|
vars:
|
||||||
cert_src: lego/_.pyrocufflink.net.crt
|
cert_src: lego/_.pyrocufflink.net.crt
|
||||||
@@ -6,4 +9,4 @@ dependencies:
|
|||||||
cert_key_src: lego/_.pyrocufflink.net.key
|
cert_key_src: lego/_.pyrocufflink.net.key
|
||||||
cert_key_dest: '{{ apache_ssl_certificate_key }}'
|
cert_key_dest: '{{ apache_ssl_certificate_key }}'
|
||||||
tags:
|
tags:
|
||||||
- nextcloud
|
- nextcloud
|
||||||
|
|||||||
@@ -49,4 +49,13 @@ $CONFIG = array (
|
|||||||
'maintenance' => {{ nextcloud_maintenance|bool|string|lower }},
|
'maintenance' => {{ nextcloud_maintenance|bool|string|lower }},
|
||||||
'theme' => '',
|
'theme' => '',
|
||||||
'loglevel' => 2,
|
'loglevel' => 2,
|
||||||
|
'filelocking.enabled' => true,
|
||||||
|
'memcache.distributed' => '\OC\Memcache\Redis',
|
||||||
|
'memcache.locking' => '\OC\Memcache\Redis',
|
||||||
|
'redis' =>
|
||||||
|
array (
|
||||||
|
'host' => 'localhost',
|
||||||
|
'port' => 6379,
|
||||||
|
'timeout' => 0.0,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user