mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
Merge pull request #16940 from strapi/docs/fix-acl-expire-time-s3
This commit is contained in:
commit
6a14ac1b76
@ -74,7 +74,7 @@ module.exports = ({ env }) => ({
|
||||
|
||||
If your bucket is configured to be private, you will need to set the `ACL` option to `private` in the `params` object. This will ensure that the signed URL is generated with the correct permissions.
|
||||
|
||||
You can also define the expiration time of the signed URL by setting the `signedUrlExpires` option in the `params` object. The default value is 7 days.
|
||||
You can also define the expiration time of the signed URL by setting the `signedUrlExpires` option in the `params` object. The default value is 15 minutes.
|
||||
|
||||
`./config/plugins.js`
|
||||
|
||||
@ -90,7 +90,7 @@ module.exports = ({ env }) => ({
|
||||
region: env('AWS_REGION'),
|
||||
params: {
|
||||
ACL: 'private', // <== set ACL to private
|
||||
signedUrlExpires: env('AWS_SIGNED_URL_EXPIRES', 60 * 60 * 24 * 7),
|
||||
signedUrlExpires: env('AWS_SIGNED_URL_EXPIRES', 15 * 60),
|
||||
Bucket: env('AWS_BUCKET'),
|
||||
},
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user