Solved path bug and optimized memcache

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

View File

@ -2,7 +2,10 @@
pause_duration: "120" # Database delay to wait for the central database before continue tasks
timezone: "UTC"
locale: "en"
locale: "en" # Some applications are case sensitive
# Deployment mode
deployment_mode: "single" # Use single, if you deploy on one server. Use cluster if you setup in cluster mode.
## Domain
primary_domain_tld: "localhost" # Top Level Domain of the server

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,
)
);