1.0.8 • Published 2 years ago

strapi-provider-upload-timeweb-s3 v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Strapi Upload Provider for Timeweb S3

This provider will upload to the space using the Timeweb S3 API.

Parameters

  • key : Access key.
  • secret : Access secret.
  • endpoint : Base URL (default 's3.timeweb.com').
  • region : Region of the bucket.
  • bucket : Name of the bucket.
  • directory : Name of the sub-directory you want to store your files in. (Optionnal - e.g. '/example').
  • domain : Custom domain - (Not yet implemented by Timeweb - default is 'https://s3.timeweb.com').

How to use

  1. Install this package
npm i strapi-provider-upload-timeweb-s3
  1. Create config in ./extensions/upload/config/settings.js with content
module.exports = {
  provider: 'timeweb-s3',
  providerOptions: {
    key: process.env.TWS3_ACCESS_KEY,
    secret: process.env.TWS3_SECRET_KEY,
    endpoint: process.env.TWS3_ENDPOINT,
    region: process.env.TWS3_REGION,
    bucket: process.env.TWS3_BUCKET,
    directory: process.env.TWS3_DIRECTORY,
    domain: process.env.TWS3_DOMAIN,
  }
}
  1. Create .env and add to them
TWS3_ACCESS_KEY
TWS3_SECRET_KEY
TWS3_ENDPOINT
TWS3_REGION
TWS3_BUCKET
TWS3_DIRECTORY
TWS3_DOMAIN

Resources

Links

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago