From ee042dae30dfc696448f72f24be6d02e5097d951 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
Date: Sat, 20 Aug 2022 17:02:46 +0200
Subject: [PATCH] matrix: Update synapse to 1.65.0

---
 roles/matrix/tasks/main.yml               | 2 +-
 roles/matrix/templates/homeserver.yaml.j2 | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/roles/matrix/tasks/main.yml b/roles/matrix/tasks/main.yml
index a84533f1d..32fea8048 100644
--- a/roles/matrix/tasks/main.yml
+++ b/roles/matrix/tasks/main.yml
@@ -75,7 +75,7 @@
 - name: install synapse
   pip:
     name:
-      - 'matrix-synapse[postgres,systemd,url_preview,redis,oidc]==1.64.0'
+      - 'matrix-synapse[postgres,systemd,url_preview,redis,oidc]==1.65.0'
     state: latest
     extra_args: '--upgrade-strategy=eager'
     virtualenv: /var/lib/synapse/venv
diff --git a/roles/matrix/templates/homeserver.yaml.j2 b/roles/matrix/templates/homeserver.yaml.j2
index c08754018..9dca032e8 100644
--- a/roles/matrix/templates/homeserver.yaml.j2
+++ b/roles/matrix/templates/homeserver.yaml.j2
@@ -52,8 +52,9 @@ modules:
         - "!tUPwPPmVTaiKXMiijj:matrix.org"     # #matrix-org-hs-tos-bl:matrix.org
         - "!vmRBOqUEHGdNBeweth:archlinux.org"  # #banlist:archlinux.org
 
+event_cache_size: 15K
 caches:
-  global_factor: 0.7
+  global_factor: 1.0
   per_cache_factors:
     get_users_in_room: 5.0
 
@@ -99,6 +100,8 @@ url_preview_ip_range_blacklist:
   - '2001:db8::/32'
   - 'ff00::/8'
   - 'fec0::/10'
+url_preview_accept_language:
+  - 'en'
 
 # WebRTC
 turn_uris:
-- 
GitLab