@_sh/strapi-provider-upload-timeweb-s3
v1.0.5
Published
Timeweb S3 provider for Strapi upload plugin
Downloads
25
Maintainers
Readme
Example
./config/plugins.js
module.exports = ({ env }) => ({
upload: {
config: {
provider: '@_sh/strapi-provider-upload-timeweb-s3',
providerOptions: {
key: env('TWS3_ACCESS_KEY'),
secret: env('TWS3_SECRET_KEY'),
endpoint: env('TWS3_ENDPOINT'),
region: env('TWS3_REGION'),
bucket: env('TWS3_BUCKET'),
directory: env('TWS3_DIRECTORY'),
domain: env('TWS3_DOMAIN')
}
},
}
});
./config/middlewares.js
{
name: 'strapi::security',
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
'connect-src': ["'self'", 'https:'],
'img-src': ["'self'", 'data:', 'blob:', 'strapi.io', 'dl.airtable.com', 's3.timeweb.com'],
'media-src': ["'self'", 'data:', 'blob:','strapi.io', 'dl.airtable.com', 's3.timeweb.com'],
upgradeInsecureRequests: null,
},
},
},
}
.env
:
TWS3_ACCESS_KEY=
TWS3_SECRET_KEY=
TWS3_REGION=
TWS3_BUCKET=
TWS3_DOMAIN=
*opt TWS3_ENDPOINT=
*opt TWS3_DIRECTORY=