Commit Graph

268 Commits (update-checksum)

Author SHA1 Message Date
HFO4 868a88e5fc Refactor: use universal FileHeader when handling file upload, remove usage of global ctx with FileHeader, SavePath, DisableOverwrite 2022-02-27 14:03:07 +08:00
HFO4 de9c41082c Feat: create upload session and pre-upload check 2022-02-10 19:30:08 +08:00
HFO4 855c9d92c4 Feat: get policy from directory props / Feat: return source enabled flag in file list 2022-02-10 19:25:38 +08:00
HFO4 3948ee7f3a Fix: use `X-Cr-` as custom header prefix 2021-11-23 21:22:23 +08:00
HFO4 416f4c1dd2 Test: balancer / auth / controller in pkg 2021-11-11 20:56:16 +08:00
WeidiDeng 4b88eacb6a
Remove unnecessary import "C" (#1048)
There are no C binding in this file. And for users to compile themselves, this line will cause compilation to fail for those who don't need sqlite support.

移除不必要的c binding,使用CGO=0时,这行会导致编译失败。禁用CGO会导致sqlite无法使用,但可以方便编译(不需要安装gcc,跨平台编译方便),这点可以在文档中说明。
2021-11-11 17:45:51 +08:00
kikoqiu 54ed7e43ca
Feat: improve thumbnails proformance and GC for local policy (#1044)
* thumb generating improvement

Replace "github.com/nfnt/resize" with "golang.org/x/image/draw". Add thumb task queue to avoid oom when batch thumb operation

* thumb improvement

* Add some tests for thumbnail generation
2021-11-11 17:45:22 +08:00
HFO4 e41ec9defa Refactor: move slave pkg inside of cluster
Test: middleware for node communication
2021-11-08 19:54:26 +08:00
AaronLiu 056de22edb
Feat: aria2 download and transfer in slave node (#1040)
* Feat: retrieve nodes from data table

* Feat: master node ping slave node in REST API

* Feat: master send scheduled ping request

* Feat: inactive nodes recover loop

* Modify: remove database operations from aria2 RPC caller implementation

* Feat: init aria2 client in master node

* Feat: Round Robin load balancer

* Feat: create and monitor aria2 task in master node

* Feat: salve receive and handle heartbeat

* Fix: Node ID will be 0 in download record generated in older version

* Feat: sign request headers with all `X-` prefix

* Feat: API call to slave node will carry meta data in headers

* Feat: call slave aria2 rpc method from master

* Feat: get slave aria2 task status
Feat: encode slave response data using gob

* Feat: aria2 callback to master node / cancel or select task to slave node

* Fix: use dummy aria2 client when caller initialize failed in master node

* Feat: slave aria2 status event callback / salve RPC auth

* Feat: prototype for slave driven filesystem

* Feat: retry for init aria2 client in master node

* Feat: init request client with global options

* Feat: slave receive async task from master

* Fix: competition write in request header

* Refactor: dependency initialize order

* Feat: generic message queue implementation

* Feat: message queue implementation

* Feat: master waiting slave transfer result

* Feat: slave transfer file in stateless policy

* Feat: slave transfer file in slave policy

* Feat: slave transfer file in local policy

* Feat: slave transfer file in OneDrive policy

* Fix: failed to initialize update checker http client

* Feat: list slave nodes for dashboard

* Feat: test aria2 rpc connection in slave

* Feat: add and save node

* Feat: add and delete node in node pool

* Fix: temp file cannot be removed when aria2 task fails

* Fix: delete node in admin panel

* Feat: edit node and get node info

* Modify: delete unused settings
2021-10-31 09:41:56 +08:00
kleinsea c85c2da523
feat: append config parameter: registerEnabled (#911) 2021-05-29 09:58:11 +08:00
HFO4 95802efcec Merge remote-tracking branch 'origin/master' 2021-03-22 18:28:57 +08:00
topjohncian 233648b956
Refactor: captcha (#796) 2021-03-22 02:28:12 -08:00
HFO4 53acadf098 Modify: limit forum threads numbers in admin index 2021-03-22 16:35:58 +08:00
HFO4 a5f80a4431 Feat: get permanent URL for OneDrive policy 2021-03-20 12:33:39 +08:00
HFO4 d1377262e3 Fix: ignore requiring SharePoint site ID after edit / nil pointer in user setting routers 2021-03-14 10:26:45 +08:00
HFO4 1f1bc056e3 Feat: API for getting object property 2021-03-11 14:50:02 +08:00
日下部 詩 a276be4098
注册帐号时,如果尚未验证,再发一次验证信 (#765)
* 注册帐号时,如果尚未验证,再发一次验证信

* 修正2个bug。 1:未验证显示密码错误 2:未验证无法重发email

* 小修正,如果已存在user,拿已有user资讯取代掉新user资讯来寄送激活码

* 激活码改成激活邮件

* 忘记密码以后,重设二步验证设定

* Revert "忘记密码以后,重设二步验证设定"

This reverts commit c5ac10b11c.

* 實作 https://github.com/cloudreve/Cloudreve/pull/765#discussion_r584313520
2021-03-02 12:43:14 +08:00
HFO4 5e226efea1 Feat: disable overwrite for non-updating put request, only works under local,slave,OneDrive,OSS policy. (#764) 2021-03-01 13:03:49 +08:00
HFO4 f35ad3fe0a Fix: #663 2021-01-06 16:35:31 +08:00
HFO4 055ed0e075 Fix: standardize the use of error codes related to login credentials 2020-12-08 20:13:42 +08:00
HFO4 5d406f1c6a Feat: use history router mode 2020-12-08 17:36:19 +08:00
HFO4 6486e8799b Fix: user storage might be returned twice when canceling uploading request (#645) 2020-12-03 18:10:10 +08:00
HFO4 f0a68236a8 Feat: delete aria2 record in client side (#335) 2020-11-23 19:24:56 +08:00
Loyalsoldier 79b8784934
Comply with Golang semantic import versioning (#630)
* Code: compatible with semantic import versioning

* Tools & Docs: compatible with semantic import versioning

* Clean go.mod & go.sum
2020-11-21 17:34:55 +08:00
HFO4 746aa3e8ef Test: s3 policy 2020-10-26 15:33:28 +08:00
HFO4 77394313aa Fix: S3 adaption for minio 2020-10-11 13:05:14 +08:00
ZZF dd50ef1c25
添加S3策略的支持 (#425)
* 添加亚马逊S3策略的支持

* 添加CDN支持,公有目录删除无用参数

* 增加Region
2020-06-05 14:45:24 +08:00
HFO4 2076d56f0f Feat: dynamic writing site title, favicon, description, custom html (#286) 2020-05-19 10:24:15 +08:00
HFO4 58856612e2 Feat: create empty file in web panel (#305) 2020-05-09 10:35:18 +08:00
HFO4 e8a6df9a86 Feat: import file from existing outer folder 2020-05-02 10:22:28 +08:00
HFO4 b02d27ca0a Merge branch 'master' of https://github.com/cloudreve/Cloudreve 2020-05-02 10:15:57 +08:00
TS 51f66eb06b
Feat: ICP 备案信息 (#348) 2020-05-01 13:50:16 +08:00
HFO4 0df8a9ba65 Modify: search shares without login required 2020-05-01 09:33:59 +08:00
HFO4 5d579cdadc Feat: slave side list file 2020-04-28 10:02:53 +08:00
HFO4 d5fc5745b4 Fix: failed test due to missing AdminCreateImportTask controller 2020-04-27 14:45:27 +08:00
HFO4 9eeb4b6d19 Feat: task for importing file from existing filesystem 2020-04-27 14:39:16 +08:00
topjohncian e58fb82463
Feat: ReCaptcha support (#292)
* Add custom mysql database port.

* Modify: add cloudreve bin file to .gitignore

* Feat:增加后端对ReCaptcha的支持
P.S.必须要执行迁移
2020-04-11 09:09:44 +08:00
HFO4 691c9aeb7d Feat: gzip support for static files 2020-04-06 09:05:30 +08:00
HFO4 c4c174f560 Fix: redirect should be 302 status in dashboard 2020-03-18 11:11:57 +08:00
HFO4 32c0232105 Fix: file preview URL in share page should not be accessed directly 2020-03-17 15:57:38 +08:00
HFO4 45b54b3455 Modify: clean useless codes 2020-03-11 15:45:00 +08:00
HFO4 4ba24e0cf1 Modify: clean modals 2020-03-11 15:22:21 +08:00
HFO4 b6e1e04ce0 Fix: panic while decompress files / Cannot edit policy 2020-03-11 09:34:29 +08:00
HFO4 6e3e81e031 Modify: service worker start url 2020-03-10 13:07:55 +08:00
HFO4 68d3131521 Feat: cross compile script 2020-03-09 16:53:01 +08:00
HFO4 30311d181d Feat: embed static files 2020-03-09 14:07:36 +08:00
HFO4 809af5bf4e Feat: task list in dashboard 2020-03-09 12:30:43 +08:00
HFO4 3b5af8da47 Feat: share file list in dashboard 2020-03-09 10:59:42 +08:00
HFO4 9166a4ecd6 Feat: delete file in dashboard 2020-03-09 10:17:59 +08:00
HFO4 768ffa24ec Feat: preview file in dashboard 2020-03-08 13:53:13 +08:00
HFO4 27c0b6e886 Feat: ban/un-ban user 2020-03-08 12:54:04 +08:00
HFO4 19c70f8cfc Feat: edit/add users 2020-03-08 10:49:34 +08:00
HFO4 38161250e8 Feat: list users 2020-03-07 14:04:18 +08:00
HFO4 c7247f5b87 Feat: edit/list user group 2020-03-07 13:00:51 +08:00
HFO4 be8aa7b01d Feat: OneDrive OAuth callback / edit policy 2020-03-02 16:20:33 +08:00
HFO4 2471dacec1 Feat: OneDrive OAuth 2020-03-01 17:57:18 +08:00
HFO4 c30c19ca3e Feat: create SFC for oss callback 2020-03-01 16:25:56 +08:00
HFO4 c4eada2723 Modify: oss handle sign URL 2020-02-27 15:12:15 +08:00
HFO4 bd643fa2d5 Feat: remote test ping and ping-back 2020-02-27 11:17:59 +08:00
HFO4 f1ef21e195 Feat: add local policy 2020-02-26 15:11:06 +08:00
HFO4 c1d2b933aa Feat: RWMutex / reload for aira2 2020-02-25 14:02:14 +08:00
HFO4 48659f6952 Feat: uploading / transfer settings 2020-02-24 15:52:13 +08:00
HFO4 000a48ff06 Feat: mail SMTP settings 2020-02-23 18:40:14 +08:00
HFO4 ef42ec3927 Modify: create Web Authn instance when needed 2020-02-23 15:50:41 +08:00
HFO4 ce2a70df68 Feat: add read/write lock for authn 2020-02-23 15:33:53 +08:00
HFO4 3ce4b87f2b Feat: login / register setting in dashboard 2020-02-23 15:19:38 +08:00
HFO4 04d13bd071 Feat: dynamically generate manifest.json 2020-02-23 11:41:39 +08:00
HFO4 31d4a0e1c2 Feat: admin dashboard homepage 2020-02-23 10:19:13 +08:00
HFO4 49f784104e Fix: get site summary in dashboard 2020-02-22 16:22:04 +08:00
HFO4 a8272a66b7 Modify: move aria2 into internal packages / migration version check 2020-02-22 12:18:49 +08:00
HFO4 1ac4767db7 Feat: reset password by Email 2020-02-22 10:36:50 +08:00
HFO4 7027a96258 Feat: user activation by Email 2020-02-22 09:50:34 +08:00
HFO4 81d6988a50 Feat: user register / send activate email 2020-02-21 15:15:14 +08:00
HFO4 7c07b623f6 Feat: 2-FA login verification 2020-02-21 13:48:34 +08:00
HFO4 c817f70f8e Feat: Webauthn / theme changing 2020-02-21 10:08:47 +08:00
HFO4 80268e33bf Feat: enable 2FA / password management 2020-02-20 12:42:38 +08:00
HFO4 58d8695c53 Fix: endless loop while creating nested folders 2020-02-20 08:59:11 +08:00
HFO4 4420a75c04 Feat: user setting 2020-02-19 16:05:54 +08:00
HFO4 33a917cc75 Feat: user profile 2020-02-18 15:34:40 +08:00
HFO4 f91792bc64 Feat: list tasks 2020-02-18 14:45:38 +08:00
HFO4 b4219927d6 Feat: WebDAV mount folders 2020-02-18 13:45:59 +08:00
HFO4 86889e2fac Feat: WebDAV account management 2020-02-18 12:10:28 +08:00
HFO4 0253b4e5b6 Feat: payjs payment 2020-02-17 13:14:18 +08:00
HFO4 f8c14b3826 Feat: vas alipay 2020-02-17 12:33:54 +08:00
HFO4 41f9f3497f Feat: vas redeem 2020-02-17 10:26:31 +08:00
HFO4 e38a60ea44 Feat: vas for group / storage pack 2020-02-16 14:31:23 +08:00
HFO4 44d6ca487c Feat: mount storage policy for folders in WebDAV 2020-02-13 15:27:40 +08:00
HFO4 cfbfbc3c55 Feat: list/search/update/delete shares 2020-02-13 11:53:24 +08:00
HFO4 15f4b1819b Feat: add and delete file tags 2020-02-12 11:38:04 +08:00
HFO4 9be1b4366f Modify: change raw object ID to Hash ID in file service 2020-02-10 13:10:59 +08:00
HFO4 f235ad1def Fix: aria2 RPC retry / return NoT_FOUND error while listing not existed path 2020-02-10 10:33:39 +08:00
HFO4 d30159579f Feat: list downloading file 2020-02-08 15:37:51 +08:00
HFO4 c29695a40d Feat: cancel aria2 download task 2020-02-06 10:07:46 +08:00
HFO4 491e4de9de Feat: download torrent / multiple file / select file 2020-02-05 15:11:34 +08:00
HFO4 fe8f1b1ef5 Feat: creat uri aria2 download task 2020-02-04 15:29:52 +08:00
HFO4 7804b4efb1 Fix: Onedrive have batch requests limit for 20 per request 2020-02-04 10:48:26 +08:00
HFO4 91e202c7e6 Feat: decompression task 2020-02-03 13:23:33 +08:00
HFO4 e722c33cd5 Feat: task queue / compression task 2020-02-02 14:40:07 +08:00
HFO4 b49202e7e1 Test: Share model 2020-02-01 13:14:50 +08:00
HFO4 437bdf46d4 Feat: thumb for shared folder 2020-02-01 10:34:23 +08:00