strapi-provider-upload-timeweb-s3

1.0.8 • Public • Published

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

Package Sidebar

Install

npm i strapi-provider-upload-timeweb-s3

Homepage

strapi.io

Weekly Downloads

11

Version

1.0.8

License

MIT

Unpacked Size

7.32 kB

Total Files

5

Last publish

Collaborators

  • mindesik