Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(s3): using internal download method in proxy #6988

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

Mmx233
Copy link
Contributor

@Mmx233 Mmx233 commented Aug 11, 2024

AWS S3 presigned URL is not available in all AWS regions. This PR allows the S3 driver to directly execute GetObject requests instead of using presigned URLs when settings like web proxy and WebDav native proxy are enabled.

CAUTION: This PR makes the S3 driver call common.ShouldProxy in internal methods. Passing a argument into model.LinkArgs or context.Context maybe a better solution. Please let me know if I should join this kind of modification.

Test Docker Image: mmx233/alist:v3.36.0-alpha3 mmx233/alist:v3.36.0-alpha3-ffmpeg

@Mmx233 Mmx233 changed the title feat: use internal download method in s3 driver feat(s3): using internal download method in proxy Aug 11, 2024
@xhofe xhofe merged commit 94937db into AlistGo:main Aug 14, 2024
3 checks passed
@Mmx233 Mmx233 deleted the improve/s3-proxy branch August 24, 2024 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants