Synapse storage provider to fetch and store media in Amazon S3
Find a file
2018-08-23 11:01:36 +01:00
.gitignore add some packaging 2018-08-22 00:30:22 +10:00
LICENSE Initial commit 2018-02-07 11:13:13 +00:00
MANIFEST.in add some packaging 2018-08-22 00:30:22 +10:00
README.md Add README 2018-02-13 13:57:56 +00:00
s3_storage_provider.py Convert to be a PushProducer 2018-08-23 11:01:36 +01:00
setup.py add some packaging 2018-08-22 00:30:22 +10:00

Synapse S3 Storage Provider

This module can be used by synapse as a storage provider, allowing it to fetch and store media in Amazon S3.

Usage

The s3_storage_provider.py should be on the PYTHONPATH when starting synapse.

Example of entry in synapse config:

media_storage_providers:
- module: s3_storage_provider.S3StorageProviderBackend
  store_local: True
  store_remote: True
  store_synchronous: True
  config:
    bucket: <S3_BUCKET_NAME>

This module uses boto3, and so the credentials should be specified as described here.