From 71062a2d40961c396aba93e5e61f3bd59c8872b9 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 10 Jan 2022 21:36:27 +0100 Subject: Matrix media natively on S3 --- app/im/config/homeserver.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'app/im/config') diff --git a/app/im/config/homeserver.yaml b/app/im/config/homeserver.yaml index c54bc4e..4a7e862 100644 --- a/app/im/config/homeserver.yaml +++ b/app/im/config/homeserver.yaml @@ -930,7 +930,7 @@ log_config: "/etc/matrix-synapse/synapse.log.config.yaml" # Directory where uploaded images and attachments are stored. # -media_store_path: "/data/media_store" +media_store_path: "/ephemeral/media_store" # Media storage providers allow media to be stored in different # locations. @@ -946,6 +946,20 @@ media_store_path: "/data/media_store" # config: # directory: /mnt/some/other/directory +media_storage_providers: +- module: s3_storage_provider.S3StorageProviderBackend + store_local: True + store_remote: True + store_synchronous: True + config: + bucket: synapse-data + # All of the below options are optional, for use with non-AWS S3-like + # services, or to specify access tokens here instead of some external method. + region_name: garage-staging + endpoint_url: https://garage-staging.home.adnab.me + access_key_id: {{ key "secrets/synapse/s3_access_key" | trimSpace }} + secret_access_key: {{ key "secrets/synapse/s3_secret_key" | trimSpace }} + # The largest allowed upload size in bytes # # If you are using a reverse proxy you may also need to set this value in -- cgit v1.2.3