Skip to content

orhankutlu/strapi-provider-upload-aws-s3-extended

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strapi-provider-upload-aws-s3-ext

Resources

Install

npm install strapi-provider-upload-aws-s3-ext

Description

This package extends strapi's aws-s3-upload provider. The key differences are

  1. Reads the AWS credentials from the environment variables.
  2. Allows admins to select default ACL's for the uploads.

Set AWS Credentials

You need to add a new property called aws to your config/custom.json file(s) and set your credentials as follows.

// config/custom.json
{
  "customConfig": "This configuration is accessible through strapi.config.environments.development.myCustomConfiguration",
  "aws": {
    "accessKeyId": "${process.env.AWS_ACCESS_KEY_ID || AWS Access Key Id}",
    "secretAccessKey": "${process.env.AWS_SECRET_ACCESS_KEY || AWS Secret Key}"
  }
}

You can rename the environment variables as you like.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published