Skip to content

Commit

Permalink
core: sb aliyun
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined-moe committed Dec 1, 2024
1 parent b3ba002 commit ac35a6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/hydrooj/src/service/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ class RemoteStorageService {
Key: target,
ResponseContentDisposition: filename ? `attachment; filename="${encodeRFC5987ValueChars(filename)}"` : '',
}), {
expiresIn: noExpire ? 24 * 60 * 60 * 7 : 10 * 60,
// aliyun s3 will reject download if expires >= 7 days
expiresIn: noExpire ? 24 * 60 * 60 * 7 - 1 : 10 * 60,
});
// using something like /fs/
if (useAlternativeEndpointFor && this.replaceWithAlternativeUrlFor[useAlternativeEndpointFor]) {
Expand Down

0 comments on commit ac35a6e

Please sign in to comment.