mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-03-31 14:24:16 +02:00
Solved path bug and optimized memcache
This commit is contained in:
parent
d20e900ab2
commit
1a7e7b3851
@ -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
|
||||
|
@ -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) }}"
|
||||
|
@ -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,
|
||||
)
|
||||
);
|
@ -1,11 +0,0 @@
|
||||
<?php
|
||||
|
||||
# Implementing redis configuration
|
||||
return array (
|
||||
'memcache.locking' => '\\OC\\Memcache\\Redis',
|
||||
'redis' =>
|
||||
array (
|
||||
'host' => 'redis',
|
||||
'port' => 6379,
|
||||
)
|
||||
);
|
Loading…
x
Reference in New Issue
Block a user