aboutsummaryrefslogtreecommitdiff
path: root/app/im/config
diff options
context:
space:
mode:
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