2.0.1 • Published 8 years ago

parse-server-s3like-adapter v2.0.1

Weekly downloads
10
License
ISC
Repository
github
Last release
8 years ago

Parse Server: S3-like storage adapter

npm Travis Coveralls License

Based on Minio's client.

If you want to:

Install

$ npm install --save parse-server-s3like-adapter

Usage

filesAdapter: {
  module: 'parse-server-s3like-adapter',
  options: {
    accessKey: 'accessKey',
    bucket: 'my_bucket',
    direct: true,
    endPoint: 'https://...',
    secretKey: 'secretKey'
  }
}
OptionDefaultDescription
accessKeyrequired
bucketrequiredThe bucket to store data into. This can be a function that takes the filename and returns a string.
directfalseWhether files are served from the endPoint (true) or proxied by Parse (false). This can be a function that takes the filename and returns a boolean.
endPointrequiredThe URL to the storage service. Should be a full URL, with protocol and port (if non-standard), e.g. https://play.minio.io:9000 or https://minio.example.com.
portFrom endPointOverride the port number. By default is parsed from the endPoint URL, with 80/443 as standard defaults based the value of secure.
prefix''A prefix to apply to all filenames. Can be set to e.g. 'foo/' to put all files in a subdirectory. This can be a function that takes the filename and returns a string.
region'us-east-1'May not actually matter for some services, refer to your documentation. This can be a function that takes the filename and returns a string.
secretKeyrequired
secureFrom endPointOverride whether the connection is secure or not. By default is parsed from the endPoint URL (https is secure, otherwise not).