strapi-provider-upload-timeweb-s3
v1.0.8
Published
Timeweb S3 provider for Strapi upload plugin
Downloads
3
Maintainers
Readme
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
- Install this package
npm i strapi-provider-upload-timeweb-s3
- 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,
}
}
- Create
.env
and add to them
TWS3_ACCESS_KEY
TWS3_SECRET_KEY
TWS3_ENDPOINT
TWS3_REGION
TWS3_BUCKET
TWS3_DIRECTORY
TWS3_DOMAIN