aboutsummaryrefslogtreecommitdiff
path: root/app/im/config/synapse
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-06-04 19:48:50 +0200
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-06-04 19:48:50 +0200
commitefcdef78564b3a3777efa5c1ed99ebc77fab0131 (patch)
treeab96d8ccffdc0908bb73055b30580a95ffc631bc /app/im/config/synapse
parent62fa15390b6997dfa25e22fbec7ca4b92c52fe74 (diff)
downloadinfrastructure-efcdef78564b3a3777efa5c1ed99ebc77fab0131.tar.gz
infrastructure-efcdef78564b3a3777efa5c1ed99ebc77fab0131.zip
Matrix 1.35.1 + S3 backend
Diffstat (limited to 'app/im/config/synapse')
-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"