Add support for configuring Synapse's media_storage_providers

In the future, we'll also inject media storage providers that we support
into the `matrix_synapse_media_storage_providers_auto` list.
This commit is contained in:
Slavi Pantaleev 2022-10-14 16:28:47 +03:00
parent 62215a87fe
commit 0da068c7e6
2 changed files with 21 additions and 0 deletions

View File

@ -798,6 +798,26 @@ matrix_synapse_spam_checker: []
# Certain Synapse extensions that you can enable below auto-inject themselves into `matrix_synapse_modules` at runtime.
matrix_synapse_modules: []
# matrix_synapse_media_storage_providers contains the Synapse `media_storage_providers` configuration setting.
# To add your own custom `media_storage_providers`, use `matrix_synapse_media_storage_providers_custom`.
matrix_synapse_media_storage_providers: "{{ matrix_synapse_media_storage_providers_auto + matrix_synapse_media_storage_providers_custom }}"
# matrix_synapse_media_storage_providers_auto contains a list of storage providers that are added by the playbook based on other configuration
matrix_synapse_media_storage_providers_auto: |
{{
[]
}}
# matrix_synapse_media_storage_providers_custom contains your own custom list of storage providers.
# You're meant to define each custom module as valid keys and values, not as a YAML string that needs to be parsed.
#
# Example:
# matrix_synapse_media_storage_providers_custom:
# - module: module.SomeModule
# store_local: True
# # ...
matrix_synapse_media_storage_providers_custom: []
matrix_synapse_encryption_enabled_by_default_for_room_type: "off"
matrix_synapse_trusted_key_servers:

View File

@ -1029,6 +1029,7 @@ media_store_path: "/matrix-media-store-parent/{{ matrix_synapse_media_store_dire
# store_synchronous: false
# config:
# directory: /mnt/some/other/directory
media_storage_providers: {{ matrix_synapse_media_storage_providers | to_json }}
# The largest allowed upload size in bytes
#