alist/internal
BaiYi 112363031a
feat: add fine-grained control for link signing (#3924)
* Determine whether the URL requires Sign

* Add File and Mem based KV

NOT TESTED: TokenKV Function

* Change Token KV func to common func.

Add File based KV func

* Remove KV, Remove Token

I found that the original Sign function is enough to complete the link signature, and only need to add simple configuration items to meet the requirements.

* Add IsStorageSigned func to judge if Signing is enabled in the storage settings.

It should be working now.

* Add a SIGN button to the management panel.

* Add enable_sign to the basic storage struct.

Can enable sign for every driver now.

Bug: When sign enabled, in download page, Copy link doesn't contain a sign.

(Not done yet)

* Fix a bug from commit 8f6c25f.

Response of fsread function does not contain sign.

* Optimize code and follow advices.

- Add back public/dist/README.md

- Enable sign when DownProxyUrl is enabled

- Merge needSign() to isEncrypt() in fsread.go

* simplify code

---------

Co-authored-by: Andy Hsu <i@nn.ci>
2023-03-24 22:44:33 +08:00
..
aria2 fix(aria2): directory missing (close #1856 pr #2504) 2022-11-28 14:05:28 +08:00
bootstrap feat(qbittorrent): add offline download seed time (#3842 close #3588) 2023-03-14 12:13:23 +08:00
conf feat(qbittorrent): add offline download seed time (#3842 close #3588) 2023-03-14 12:13:23 +08:00
db feat(cmd): disable a storage with specific mountPath (close #3564) 2023-03-07 19:01:40 +08:00
driver feat: rename then delete if storage doesn't support overwrite upload (close #3643) 2023-03-05 15:36:12 +08:00
errs feat: multiple search indexes (#2514) 2022-11-28 13:45:25 +08:00
fs feat(alias): support proxy and direct together 2023-03-14 13:46:27 +08:00
fuse chore: add fuse package 2022-07-20 00:39:20 +08:00
message chore: change message type 2022-08-14 03:05:30 +08:00
model feat: add fine-grained control for link signing (#3924) 2023-03-24 22:44:33 +08:00
op feat: add fine-grained control for link signing (#3924) 2023-03-24 22:44:33 +08:00
qbittorrent feat(qbittorrent): add offline download seed time (#3842 close #3588) 2023-03-14 12:13:23 +08:00
search fix: allow_indexed check (close #3291) 2023-02-07 15:14:39 +08:00
setting refactor: split the db package hook and cache to the op package (#2747) 2022-12-18 19:51:20 +08:00
sign feat: add 189cloud driver 2022-09-06 14:39:21 +08:00