ansible-debops-infrastructure

DebOps and Ansible scripts to manage my infrastructure
git clone git://git.erethon.com/ansible-debops-infrastructure
Log | Files | Refs

commit fe6011b8702da9041e16ae604b13c02a17378097
parent 7d7ee9b170927b0337f4e20663f81319f129c437
Author: Dionysis Grigoropoulos <dgrig@erethon.com>
Date:   Fri,  5 Aug 2022 00:12:12 +0300

synapse: Update homeserver configuration template

* Add media retention section for rmeote media
* Remove old and deprecated settings

Diffstat:
ansible/roles/synapse/defaults/main.yml | 2++
ansible/roles/synapse/templates/homeserver.yaml.j2 | 6++++--
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ansible/roles/synapse/defaults/main.yml b/ansible/roles/synapse/defaults/main.yml @@ -35,3 +35,5 @@ synapse__enable_device_name_over_federation: 'false' synapse__caches_expiry_time: '60m' synapse__enable_phonehome_stats: 'false' + +synapse__remote_media_lifetime: '1d' diff --git a/ansible/roles/synapse/templates/homeserver.yaml.j2 b/ansible/roles/synapse/templates/homeserver.yaml.j2 @@ -33,6 +33,8 @@ database: log_config: "/etc/matrix-synapse/log.yaml" media_store_path: "/var/lib/matrix-synapse/media" +media_retention: + remote_media_lifetime: "{{ synapse__remote_media_lifetime }}" uploads_path: "/var/lib/matrix-synapse/uploads" @@ -63,7 +65,7 @@ allow_device_name_lookup_over_federation: {{ synapse__enable_device_name_over_fe public_baseurl: "{{ synapse__public_base_url }}" caches: - expiry_time: "{{ synapse__caches_expiry_time }}" + global_factor: {{ synapse__cache_global_factor | default(1.0) }} {% if synapse__cache_factors is defined %} per_cache_factors: {% for cache_factor in synapse__cache_factors %} @@ -71,4 +73,4 @@ per_cache_factors: {% endfor %} {% endif %} -report_stats: "{{ synapse__enable_phonehome_stats }}" +report_stats: {{ synapse__enable_phonehome_stats }}