freeCodeCamp / publish

> Content backend platform for /news
https://publish.freecodecamp.org
BSD 3-Clause "New" or "Revised" License
10 stars 9 forks source link

feat: configure S3 as upload provider #439

Open sidemt opened 4 months ago

sidemt commented 4 months ago

Checklist:

Closes #52

I tested uploading and retrieving images with my personal AWS account. This config should work if the permissions on the AWS S3 are configured properly.

The URL() constructor is smart enough to use the second argument (base URL) only if the first argument is a relative path. So the frontend app works for both development (using local disk) and production (using S3) without any changes.

image

image

socket-security[bot] commented 4 months ago

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@strapi/provider-upload-aws-s3@4.20.0 Transitive: environment, filesystem, network, shell +105 6.19 MB markkaylor

View full report↗︎

raisedadead commented 4 months ago

... config should work if the permissions on the AWS S3 are configured properly.

Please point me to the bucket policy, IAM role etc. that I need to configure. Thanks

sidemt commented 4 months ago

@raisedadead Sure, I will document and share them with you.