Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 928 Bytes

File metadata and controls

26 lines (20 loc) · 928 Bytes

S3 Storage

This plugin can be used to store attachments and avatars to AWS S3.

How to use

Build

./answer build --with github.com/apache/answer-plugins/storage-s3

Configuration

  • Endpoint - Endpoint of the AWS S3 storage
  • Bucket Name - Your bucket name
  • Object Key Prefix - Prefix of the object key like 'answer/data/' that ending with '/'
  • Access Key Id - AccessKeyId of the S3
  • Access Key Secret - AccessKeySecret of the S3
  • Access Token - AccessToken of the S3
  • Visit Url Prefix - Prefix of access address for the uploaded file, ending with '/' such as https://example.com/xxx/

Notes

DigitalOcean

If using a DigitalOcean Spaces Object Storage, you must set the following environment variable: ACL_PUBLIC_READ=true. Without this environment variable set, uploads will not be publicly readable. See also #97.