From 95aaf76d0df0de0f812258275673dcc7ad96df36 Mon Sep 17 00:00:00 2001 From: Aine Date: Thu, 7 Nov 2024 11:08:40 +0200 Subject: [PATCH] add matrix_synapse_oembed_additional_providers var --- roles/custom/matrix-synapse/defaults/main.yml | 3 +++ .../custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 | 1 + 2 files changed, 4 insertions(+) diff --git a/roles/custom/matrix-synapse/defaults/main.yml b/roles/custom/matrix-synapse/defaults/main.yml index d6527b7a8..c6e2db9be 100644 --- a/roles/custom/matrix-synapse/defaults/main.yml +++ b/roles/custom/matrix-synapse/defaults/main.yml @@ -362,6 +362,9 @@ matrix_synapse_media_retention_local_media_lifetime: # should be empty to disable matrix_synapse_media_retention_remote_media_lifetime: +# Controls the list of additional oembed providers to be added to the homeserver. +matrix_synapse_oembed_additional_providers: [] + # The tmpfs at /tmp needs to be large enough to handle multiple concurrent file uploads. matrix_synapse_tmp_directory_size_mb: "{{ matrix_synapse_max_upload_size_mb * 50 }}" diff --git a/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 b/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 index 89681142d..5a20fea4f 100644 --- a/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 +++ b/roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 @@ -1235,6 +1235,7 @@ oembed: # #additional_providers: # - oembed/my_providers.json + additional_providers: {{ matrix_synapse_oembed_additional_providers|to_json }} ## Captcha ##