Skip to content

Latest commit

 

History

History
37 lines (19 loc) · 867 Bytes

README.md

File metadata and controls

37 lines (19 loc) · 867 Bytes

Thumbor-Spaces

DigitalOcean Spaces adapter for thumbor

Provides a Thumbor result storage adapter for Spaces that stores files in DigitalOcean.

Installing

Thumbor-Spaces can be easily installed using pip install thumbor_spaces=='2.1'.

Configuration

Use spaces for result storage. For more info on result storage: https://thumbor.readthedocs.io/en/latest/result_storage.html

/etc/thumbor.conf

RESULT_STORAGE = 'thumbor_spaces.result_storages.spaces_storage'
LOADER = 'thumbor_spaces.loaders.spaces_loader'

SPACES_REGION='xxx'

SPACES_ENDPOINT='xxx'

SPACES_KEY='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

SPACES_SECRET='XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

SPACES_BUCKET='your-bucket-name'

SPACES_ACL='public'

SPACES_RESULT_FOLDER='result_storage'

SPACES_LOADER_FOLDER='storage'