mirror of
https://github.com/strapi/strapi.git
synced 2025-12-27 15:13:21 +00:00
fix: mention actual expire time of private assets
This commit is contained in:
parent
7ec5466c22
commit
f787d94bad
@ -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