1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-06-29 00:16:53 +00:00
Commit Graph

26 Commits

Author SHA1 Message Date
feiniks
96996b79e3
Support argon2id password hash algo (#637)
* Support argon2id password hash algo

* CI install argon2 deps

* Go support argonid algo

* RPC add pwd_hash_algo and pwd_hash_params

* Support password hash algo

* Don't set magic when pwd_hash is set

* Fix ci error

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-05-22 18:49:57 +08:00
feiniks
98315cce73
Add option to build http server (#648)
* Add option to build httpserver

* Add option to build libevhtp

* Delete unused option

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-03-13 19:38:44 +08:00
feiniks
0b5b0bf43c
Delete seafile_auth_token option (#594)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-02-11 10:54:50 +08:00
feiniks
4a21c835d3
Add notification config in seafile.conf (#593)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-02-09 12:02:22 +08:00
feiniks
d6f6127641
Add notification server (#535)
* Add notification server of go

Modify path of pkg

Send notification for update-repo event

Delete client pkg and use reflect select to send message

Modify output of log

Add formatter of log

Add jwt authentication

go add get jwt token api

CI support compile libjwt

Get group users from database

* Add ping to test mysql is alive

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-12-16 15:29:01 +08:00
Xiangyue Cai
25fa59d06a
use c fileserver when sqlite3 (#509) 2021-11-06 10:39:23 +08:00
Jiaqiang Xu
7420b8d738
Go fileserver (#437)
* Initial commit for fileserver written in golang.

[gofileserver] Fix some syntaxt errors.

Add fs backend and objstore test (#352)

* Add fs backend and objstore test

* modify test case and optimize fs backend

* Modify function name and first write temporary files

* Don't need to reopen the temp files

Add comment for objstore (#354)

* Add comment for objstore

* Modify comment

Add commitmgr and test case (#356)

* Add commitmgr and test case

* Redefine the interface

* Modify comment and interface

* Modify parameter and del unused method

* Add comment for FromData and ToData

Add blockmgr and test case (#357)

* Add blockmgr and test case

* Modify comment and interface

Add fsmgr and test case (#358)

* Add fsmgr and test case

* Add save interface and error details

* Modify errors and comments

Add searpc package and test case (#360)

* Add searpc package

* Add searpc test case

* Add return error and add Request struct

* Modify returned error

* Modify comments

add checkPerm (#369)

Add file and block download (#363)

* Add file and block download

* Modify init and use aes algorithm

* Get block by offset and add stat method

* Modify objID's type

* Fix reset pos after add start

* Add http error handing and record log when failed to read block or write block to response

* Modify http return code and value names

* Modify http return code and add log info

* Block read add comment and only repeat once

load ccnetdb and support sqlite (#371)

Add zip download (#372)

* Add zip download

* Modify pack dir and log info

* Modify http return code and use Deflate zip compression methods

add /repo/<repo-id>/permission-check (#375)

add /<repo-id>/commit/HEAD (#377)

add  /repo/<repo-id>/commit/<id> (#379)

add /repo/<repo-id>/block/<id> (#380)

add /repo/<repo-id>/fs-id-list (#383)

add /repo/head-commits-multi (#388)

Add file upload api (#378)

* Add file upload api

* Upload api implements post multi files and create relative path

* Modify handle error and save files directly

* Fix rebase conflict

* index block use channel and optimize mkdir with parents

* Handle jobs and results in a loop

* Mkdir with parents use postMultiFiles and use pointer of SeafDirent

* Del diff_simple size_sched virtual_repo

* Need to check the path with and without slash

* Modify merge trees and add merge test case

* Del postFile and don't close results channel

* Close the file and remove multipart temp file

* Modify merge test case and compare the first name of path

* Use pointer of Entries for SeafDir

* Add test cases for different situations

add /repo/<repo-id>/pack-fs (#389)

add POST /<repo-id>/check-fs and /<repo-id>/check-blocks (#396)

Merge compute repo (#397)

* Add update repo size and merge virtual repo

* Eliminate lint warnings

* Uncomment merge virtual repo and compute repo size

* Need init the dents

* Use interface{} param and modify removeElems

* Move update dir to file.go and modify logs

* Del sync pkg

add PUT /<repo-id>/commit/<commit-id> (#400)

add PUT /<repo-id>/block/<id> (#401)

add POST /<repo-id>/recv-fs (#398)

add PUT /<repo-id>/commit/HEAD (#402)

Add http return code (#403)

Add file update API (#399)

* Add file update API

* Add GetObjIDByPath and fix change size error

* Add traffic statistics for update api

add diffTrees unit test (#391)

add GET /accessible-repos (#406)

add GET /<repo-id>/block-map/<file-id> (#405)

Add test update repo size and merge virtual repo (#409)

* Update dir need update repo size

* Add test update repo size and merge virtual repo

* Add delay for test ajax

* Add delay before get repo size and modify comment

Use go fileserver for unit test (#410)

* Use go fileserver for unit test

* Blocking scheduling update repo size

* Add delay because of sqlite doesn't support concurrency

* Post use multipart form encode

* Del mysql database when test finished

* Fix merge virtual repo failed when use sqlite3

Add upload block API (#412)

fixed error

Add quota-check API (#426)

use diff package

* Use central conf for go fileserver (#428)

* Use central conf for go fileserver

* Fix log error

* use store id and remove share get repo owner (#430)

* Fix permission error (#432)

Co-authored-by: feiniks <36756310+feiniks@users.noreply.github.com>
Co-authored-by: Xiangyue Cai <caixiangyue007@gmail.com>
2021-01-04 11:41:53 +08:00
feiniks
52586639ac
Merge the functions of ccnet-server into seafile-server (#293)
* merge the api of ccnet into seafile

* merge the api of ccnet into seafile

* Dont't need to include the header

* merge the api of ccnet into seafile

* add enable ldap

* The unit test dont't need to start ccnet-server

* Modify some funcion names and fuse don't need org management

* Modify indent
2020-04-15 10:21:04 +08:00
ly1217
14d8628bcb Add named pipe server thread pool. 2019-09-11 01:19:54 -07:00
Jonathan Xu
a300c1277a Minor bug fixes.
- set HAVE_MYSQL macro when MariaDB is used.
- fix a crash bug when wrong database is configured.
2019-08-07 19:29:08 +08:00
Jonathan Xu
bb33ea7741 Remove unused options from seaf-server. 2019-08-07 14:21:14 +08:00
Xiangyue Cai
aa0185203b add rpc publish_event() , pop_event() and remove cevent (#253) 2019-07-22 11:18:32 +08:00
Jonathan Xu
c142d4bf4f Improve code after use named pipe for RPC and support python 3. 2019-07-01 16:50:25 +08:00
ly1217
c73916ef77 Upadte to python3. 2019-06-27 22:30:31 -07:00
Jonathan Xu
17ef884861 Encrypted library version 3: use different salt for each library. 2019-04-30 21:22:57 +08:00
cuihaikuo
dd0519d7c3 Create tables by script. 2019-03-28 14:20:33 +08:00
cuihaikuo
466fce24a6 Set default rpc pool size to 10, set default copy-mgr pool size to 5. 2019-01-08 16:57:59 +08:00
cuihaikuo
7c09f53be6 Only mysql can use config option 'create_tables'. 2018-07-09 15:18:06 +08:00
cuihaikuo
6eab55e149 Add config option 'create_tables'. 2018-07-05 11:58:33 +08:00
cuihaikuo
25dcf165f7 Fix that table SystemInfo can't be created in sqlite db. 2018-06-07 11:59:32 +08:00
cuihaikuo
b9d74500fa Add primary key for mysql table.
Add column names in 'INSERT' and 'REPLACE' sql.
2018-04-18 15:07:49 +08:00
cuihaikuo
caee7ef963 Support background task for indexing blocks. 2018-02-06 14:37:27 +08:00
cuihaikuo
b11f861fbd Support loading configuration from database. 2017-09-07 17:01:56 +08:00
cuihaikuo
ab08ec51e2 Fix a bug that may cause a memory leak 2017-06-19 16:24:16 +08:00
cuihaikuo
beab14ffe1 spelling mistake 2016-12-12 10:40:09 +08:00
Jiaqiang Xu
2643119433 Initial commit of Seafile server core. 2016-08-19 13:54:16 +08:00