Go to file
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
.github ci: add log required on question label [skip ci] 2023-03-22 14:03:04 +08:00
cmd feat(cmd): disable a storage with specific mountPath (close #3564) 2023-03-07 19:01:40 +08:00
drivers fix(url_tree): incorrect tree structure 2023-03-24 20:34:03 +08:00
internal feat: add fine-grained control for link signing (#3924) 2023-03-24 22:44:33 +08:00
pkg fix(local): filename with whitespace issue (#3928) 2023-03-23 15:18:37 +08:00
public fix: put a placeholder file in dist [skip ci] 2022-08-30 15:53:40 +08:00
server feat: add fine-grained control for link signing (#3924) 2023-03-24 22:44:33 +08:00
wrapper feat: add `windows/arm64` target (close #3308) 2023-02-09 19:52:40 +08:00
.gitignore chore: only ignore root dirs (#2741) 2022-12-18 16:48:32 +08:00
CODE_OF_CONDUCT.md docs: Create CODE_OF_CONDUCT.md [skip ci] 2022-09-10 22:23:05 +08:00
CONTRIBUTING.md build: change golang version 2022-10-12 17:35:44 +08:00
Dockerfile feat: allow override startup command for Docker image (#3800) 2023-03-11 15:33:59 +08:00
LICENSE chore: add windows bin to gitignore 2022-04-18 18:31:10 +08:00
README.md feat: add `Cloudreve` driver (close #2658 in #2997) 2023-01-12 19:57:43 +08:00
README_cn.md docs: translate title [skip ci] (#3498) 2023-02-18 17:50:42 +08:00
build.sh fix: windows arm64 build [skip ci] 2023-02-14 20:28:05 +08:00
docker-compose.yml feat: install `tzdata` in the docker image (#3056) 2023-01-16 13:43:15 +08:00
entrypoint.sh feat: add `PUID`, `PGID`, `Umask` settings to docker image (close #2525 pr #2818) 2022-12-28 17:18:27 +08:00
go.mod feat: add fine-grained control for link signing (#3924) 2023-03-24 22:44:33 +08:00
go.sum feat: add fine-grained control for link signing (#3924) 2023-03-24 22:44:33 +08:00
main.go feat: use cobra and add some command 2022-08-07 13:09:59 +08:00
renovate.json fix(deps): update dependencies by renovate[bot] (#2344) 2022-11-17 08:49:15 +08:00

README.md

logo

🗂️A file list program that supports multiple storage, powered by Gin and Solidjs.


English | 中文 | Contributing | CODE_OF_CONDUCT

Features

Document

https://alist.nn.ci/

Demo

https://al.nn.ci

Discussion

Please go to our discussion forum for general questions, issues are for bug reports and feature request only.

Sponsor

AList is an open-source software, if you happen to like this project and want me to keep going, please consider sponsoring me or providing a single donation! Thanks for all the love and support: https://alist.nn.ci/guide/sponsor.html

Special sponsors

Contributors

Thanks goes to these wonderful people:

Contributors

License

The AList is open-source software licensed under the AGPL-3.0 license.

Disclaimer

  • This program is a free and open source project. It is designed to share files on the network disk, which is convenient for downloading and learning golang. Please abide by relevant laws and regulations when using it, and do not abuse it;
  • This program is implemented by calling the official sdk/interface, without destroying the official interface behavior;
  • This program only does 302 redirect/traffic forwarding, and does not intercept, store, or tamper with any user data;
  • Before using this program, you should understand and bear the corresponding risks, including but not limited to account ban, download speed limit, etc., which is none of this program's business;
  • If there is any infringement, please contact me by email, and it will be dealt with in time.

@Blog · @GitHub · @TelegramGroup · @Discord