AlistGo / AlistGo/alist

希望S3支持预签名URL方式上传,消除alist服务器流量瓶颈

Offen
#7,762 1 Kommentar 3 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Go
Sterne
50.2k
Forks
7.9k
Ø Merge
7 T. 21 Std.
Gemergte PRs (30 T.)
6

Beschreibung

### Please make sure of the following things

- [X] I have read the [documentation](https://alist.nn.ci).
- [X] I'm sure there are no duplicate issues or discussions.
- [X] I'm sure this feature is not implemented.
- [X] I'm sure it's a reasonable and popular requirement.

### Description of the feature / 需求描述

目前上传到对象存储需要去alist服务器绕一圈,服务器流量存在瓶颈,希望可以支持直接使用对象存储的预签名URL从浏览器端直传到对象存储服务,从而消除瓶颈。

### Suggested solution / 实现思路

- 实现思路
1. 上传前获取允许PUT请求的预签名URL返回页面
2. 页面直接将文件PUT到预签名URL,不经过alist服务器
3. 完成上传

- 可能的修改点:
1. 页面上传逻辑,如果当前对象存储支持预签名上传
2. 添加获取预签名URL接口
3. 存储管理中添加预签名URL的超时时间(或直接使用目前的“签名链接有效期”)、是否使用预签名上传

生成预签名URL可参考以下文档:
https://developers.cloudflare.com/r2/api/s3/presigned-urls/

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.