No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Fix a Py3 issue and package & test it better (#15) Oct 23, 2018
.travis.yml
LICENSE Initial commit Feb 7, 2018
MANIFEST.in
README.md
s3_storage_provider.py
setup.cfg
setup.py add boto3 as a dependency Aug 23, 2018
test_s3.py Add tests Aug 23, 2018
tox.ini Fix a Py3 issue and package & test it better (#15) Oct 23, 2018

README.md

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.