Skip to content

This is heavily customized for personal use. Do not use this unless you are aware of the changes.

License

Notifications You must be signed in to change notification settings

tention/strapi-provider-upload-aws-s3-enhanced

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strapi-provider-upload-aws-s3-enhanced

Supported Strapi version GitHub license

Enhanced AWS S3 provider for Strapi uploads: thumbnails, image compression, WebP format, custom domain.

Instalation

yarn add strapi-provider-upload-aws-s3-enhanced

Configuration

Update your config/plugins.js:

module.exports = ({ env }) => ({
  upload: {
    provider: 'aws-s3-enhanced',
    providerOptions: {
      accessKeyId: env('AWS_ACCESS_KEY_ID'),
      secretAccessKey: env('AWS_ACCESS_SECRET'),
      region: env('AWS_REGION'),
      params: {
        Bucket: env('AWS_BUCKET'),
      },
      customDomain: env('CDN_DOMAIN'),
      endpoint: env('CUSTOM_S3_ENDPOINT'), // For third-party S3-compatible storages
      prefix: null,
      quality: 80,
      webp: true,
      accessLevel: env('ACCESS_LEVEL'), // Default set to: 'public-read'
      thumbnails: [
        {
          name: 'custom',
          options: {
            width: 1200,
            withoutEnlargement: true,
          },
        },
        {
          name: 'preview',
          options: {
            width: 500,
            height: 300,
            fit: 'cover',
          },
        },
      ],
    },
  },
});

License

MIT License

About

This is heavily customized for personal use. Do not use this unless you are aware of the changes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%