Synapse storage provider to fetch and store media in Amazon S3
Find a file
Adam Hellberg f4df1a69eb
Allow configuration of region and access keys
Adds the option to set more boto3 options: region_name,
aws_access_key_id, and aws_secret_access_key. This makes it easier to
configure without having to be careful about some CLI tool having the
correct configuration. Also allows setting the region name.
2019-03-14 22:51:16 +01:00
.gitignore Fix a Py3 issue and package & test it better (#15) 2018-10-23 20:48:22 +11:00
.travis.yml Fix a Py3 issue and package & test it better (#15) 2018-10-23 20:48:22 +11:00
LICENSE Initial commit 2018-02-07 11:13:13 +00:00
MANIFEST.in Fix a Py3 issue and package & test it better (#15) 2018-10-23 20:48:22 +11:00
README.md Add README 2018-02-13 13:57:56 +00:00
s3_storage_provider.py Allow configuration of region and access keys 2019-03-14 22:51:16 +01:00
setup.cfg Fix a Py3 issue and package & test it better (#15) 2018-10-23 20:48:22 +11:00
setup.py add boto3 as a dependency 2018-08-23 18:55:50 +01:00
test_s3.py Add tests 2018-08-23 13:26:08 +01:00
tox.ini Fix a Py3 issue and package & test it better (#15) 2018-10-23 20:48:22 +11: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.