thumbor-community / aws

Thumbor AWS extensions
MIT License
155 stars 70 forks source link

Need Help with Configuration #150

Closed highoncarbs closed 1 year ago

highoncarbs commented 4 years ago

Please follow this template for reporting a bug. If you're not reporting a bug, you're free to use the formatting you want :)

I am a bit confused with the AWS terms here , I am using Digital Ocean Spaces which looks like

--|
   |-- panya
   |-- panya-result

Screenshot (83)

Configuration

AWS_ACCESS_KEY = 'xxx'
AWS_SECRET_KEY = 'xxx'
LOADER = 'thumbor.loaders.http_loader'
STORAGE = 'tc_aws.storages.s3_storage'
RESULT_STORAGE = 'tc_aws.result_storages.s3_storage'
TC_AWS_ENDPOINT='https://saas-space.ams3.digitaloceanspaces.com'
FILE_LOADER_ROOT_PATH = '/panya'
FILE_STORAGE_ROOT_PATH = '/panya'
RESULT_STORAGE_FILE_STORAGE_ROOT_PATH = 'panya-result'

TC_AWS_REGION = 'ams3'
TC_AWS_STORAGE_BUCKET = 'saas-space'
TC_AWS_STORAGE_ROOT_PATH = '/panya'
TC_AWS_RESULT_STORAGE_BUCKET = 'saas-space' # S3 bucket for result Storage
TC_AWS_RESULT_STORAGE_ROOT_PATH = '/panya-result'

This results is overly compilcated directory structure in my bucket . Ideally I would like to store my uploaded images in panya and result storage in panya-result folder.

But this is what it currently looks like - see the directory path at the top

Screenshot (85)

Bladrak commented 1 year ago

Cleaning up old issues, feel free to reopen if it's still present with the latest releases