mirror of
https://github.com/outline/outline.git
synced 2026-11-28 16:19:46 +03:00
fix: S3 expiry not passed correctly (#8013)
This commit is contained in:
1 parent
0663d191fc
commit
2cce95488c
1 file changed
+1
-2
@@ -145,14 +145,13 @@ export default class S3Storage extends BaseStorage {
|
||||
const params = {
|
||||
Bucket: this.getBucket(),
|
||||
Key: key,
|
||||
Expires: expiresIn,
|
||||
};
|
||||
|
||||
if (isDocker) {
|
||||
return `${this.getPublicEndpoint()}/${key}`;
|
||||
} else {
|
||||
const command = new GetObjectCommand(params);
|
||||
const url = await getSignedUrl(this.client, command);
|
||||
const url = await getSignedUrl(this.client, command, { expiresIn });
|
||||
|
||||
if (env.AWS_S3_ACCELERATE_URL) {
|
||||
return url.replace(
|
||||
|
||||
Reference in new issue
Block a user