aboutsummaryrefslogtreecommitdiff
path: root/app/im/config
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-01-10 21:36:27 +0100
committerAlex Auvolat <alex@adnab.me>2022-01-10 21:36:27 +0100
commit71062a2d40961c396aba93e5e61f3bd59c8872b9 (patch)
tree9a420185f3ee917810239b078e7051614a0166a3 /app/im/config
parent49270804434a954c5ee3d491a9d20b34bdb555ec (diff)
downloadnixcfg-71062a2d40961c396aba93e5e61f3bd59c8872b9.tar.gz
nixcfg-71062a2d40961c396aba93e5e61f3bd59c8872b9.zip
Matrix media natively on S3
Diffstat (limited to 'app/im/config')
-rw-r--r--app/im/config/homeserver.yaml16
1 files changed, 15 insertions, 1 deletions
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