aboutsummaryrefslogtreecommitdiff
path: root/app/im/config/synapse/homeserver.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'app/im/config/synapse/homeserver.yaml')
-rw-r--r--app/im/config/synapse/homeserver.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/im/config/synapse/homeserver.yaml b/app/im/config/synapse/homeserver.yaml
index eacf509..c68bc49 100644
--- a/app/im/config/synapse/homeserver.yaml
+++ b/app/im/config/synapse/homeserver.yaml
@@ -137,6 +137,29 @@ federation_rc_concurrent: 3
media_store_path: "/var/lib/matrix-synapse/media"
uploads_path: "/var/lib/matrix-synapse/uploads"
+media_storage_providers:
+- module: s3_storage_provider.S3StorageProviderBackend
+ store_local: True
+ store_remote: True
+ store_synchronous: True
+ config:
+ bucket: matrix
+ # 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
+ endpoint_url: https://garagehq.deuxfleurs.fr
+ access_key_id: {{ key "secrets/chat/synapse/s3_access_key" | trimSpace }}
+ secret_access_key: {{ key "secrets/chat/synapse/s3_secret_key" | trimSpace }}
+
+ # The object storage class used when uploading files to the bucket.
+ # Default is STANDARD.
+ #storage_class: "STANDARD_IA"
+
+ # The maximum number of concurrent threads which will be used to connect
+ # to S3. Each thread manages a single connection. Default is 40.
+ #
+ #threadpool_size: 20
+
# The largest allowed upload size in bytes
max_upload_size: "100M"