Solved path bug and optimized memcache

This commit is contained in:
2025-02-28 13:45:19 +01:00
parent d20e900ab2
commit 1a7e7b3851
4 changed files with 18 additions and 13 deletions

View File

@@ -12,7 +12,7 @@
- name: "Create config files at {{ nextcloud_docker_config_additives_directory }}"
template:
src: "{{ item }}"
dest: "{{ nextcloud_docker_config_additives_directory }}/{{ item | basename | regex_replace('\\.j2$', '') }}"
dest: "{{ nextcloud_host_config_additives_directory }}/{{ item | basename | regex_replace('\\.j2$', '') }}"
owner: "{{nextcloud_docker_user_id}}"
group: "{{nextcloud_docker_user_id}}"
loop: "{{ lookup('fileglob', role_path ~ '/templates/config/*.j2', wantlist=True) }}"

View File

@@ -0,0 +1,13 @@
<?php
# Implementing redis configuration
return array (
# For single server setup APCu is recommended, for multi server setup Redis
'memcache.local' => '\\OC\\Memcache\\{% if deployment_mode == "single" %}APCu{% else %}Redis{% endif %}',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'redis',
'port' => 6379,
)
);

View File

@@ -1,11 +0,0 @@
<?php
# Implementing redis configuration
return array (
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'redis',
'port' => 6379,
)
);