server/nextcloud: Enabled redis cache

dehydrated
Felix Stupp 5 years ago
parent f3d7f2f8a2
commit c6a9c15e14
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -18,6 +18,10 @@ dependencies:
includes:
- "{{ nextcloud_installation_directory }}/apps"
memory_limit: 1G
- role: redis/instance
# domain
# system_user
# user_directory
- role: nginx/server
directives: |
add_header X-Robots-Tag none;

@ -26,6 +26,7 @@
# - php-mcrypt
- php-mysql
# - php-posix
- php-redis
# - php-simplexml
- php-xml
# - php-xmlreader
@ -95,6 +96,12 @@
insertbefore: "^\\);"
block: |
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' => [
'host' => '{{ redis_socket_path }}',
'port' => 0,
],
validate: /usr/bin/php %s
- name: Install Nextcloud apps

Loading…
Cancel
Save