feiniks
5899f110b9
Add online gc ( #706 )
...
* Add online gc core
* Add check gc when update repo
* Go add check gc when update repo
* Add gc unit test
* Support set pwd_hash for gc and fsck
* Optimize to check if block exists
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-10-24 18:34:16 +08:00
feiniks
6af96fe1d2
Log format ( #704 )
...
* Format c log
* Format go log
* Add SEAFILE_LOG_TO_STDOUT env
* Modify parameters name
* Set stdout to output
* Add app name and print error log
* Disable daemon mode when SEAFILE_LOG_TO_STDOUT is true
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-10-24 10:46:41 +08:00
feiniks
1afed5d770
Support archive files with same name ( #705 )
...
* Support archive files with same name
* Go support archive files with same name
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-09-27 17:20:04 +08:00
feiniks
61126d108c
Add json exp ( #699 )
...
* Add json exp
* Add json exp and add gen jwt token
* Gen seahub and notif jwt token
* Add exp for gen jwt token
* Delete gen_jwt_token API
* Delete set exp to 72 hour
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-09-18 17:59:24 +08:00
feiniks
72753e152b
Return error when failed to get user from database ( #700 )
...
* Return error when failed to get user from database
* Use CCNET_ERR_INTERNAL
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-09-18 16:28:15 +08:00
feiniks
c80bf17efb
Add batch del files RPC ( #694 )
...
* Add batch del files RPC
* Add pack multi-level files
* Go add pack multi-level files
* Use change set to batch del files
* Improve args
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-09-13 14:58:45 +08:00
feiniks
597f4bbfa6
Read site_root from env ( #692 )
...
* Read site_root from env
* Go read site_root from env and match slash
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-09-06 17:17:06 +08:00
feiniks
f3f818881f
Add read JWT_PRIVATE_KEY ( #690 )
...
* Add read JWT_PRIVATE_KEY
* Go add read JWT_PRIVATE_KEY
* Add seahub_settings.py
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-09-03 18:43:11 +08:00
feiniks
1e8278122f
Set salt when use pwd_hash ( #688 )
...
* Use fixed repo salt
* Set default value
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-09-03 18:33:43 +08:00
feiniks
95bad895b4
Add upload link and download link API ( #683 )
...
* Add upload link and download link API
* Use go 1.22 for ci
* Go add upload link API
* Add norm UTF8 path
* Go add upload link API
* Add seahub_settings.py
* Add projectDir
* Add download link API
* Set and check etag
* Add comment and set no-cache
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-09-03 18:19:37 +08:00
feiniks
b5b37e69e0
Add check Authorization header ( #686 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-08-29 15:28:41 +08:00
feiniks
a535c64d13
Use Authorization header ( #675 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-08-01 11:25:31 +08:00
feiniks
77fa08566b
Add gen_jwt_token RPC ( #674 )
...
* Add gen_jwt_token RPC
* Set error when failed to generate jwt token
* Modify RPC name
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-07-31 18:03:41 +08:00
feiniks
0a084d3c8a
Don't print log when db password is ! ( #673 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-07-31 11:56:56 +08:00
feiniks
49c860b50d
Get nickname use seahub API ( #670 )
...
* Get nickname use seahub API
* Add parse site_root
* Use regex to match SECRET_KEY
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-07-30 17:58:18 +08:00
feiniks
6c056c1f6b
Add last_modify field in form ( #666 )
...
* Add last_modify field in form
* Go add last_modify field in form
* Use rfc3339 time format
* Add mtime for upload_blks_api
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-07-23 18:52:15 +08:00
杨赫然
11d4741224
Merge branch '11.0'
2024-07-16 17:37:24 +08:00
feiniks
ba9476d67b
Create repo add pwd_hash and don't read pwd_hash from seafile.conf ( #665 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-07-16 16:42:37 +08:00
feiniks
d51591d8f7
get nickname from seahub database ( #663 )
...
* Add parse seahub database config
* Get nickname from seahub database
* Go get nickname from seahub database
* Save output of script to memory and fix some errors
* Add exec permission and free child_output
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-07-10 16:34:33 +08:00
feiniks
06851a12c1
Set repo_type when convert repo ( #661 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-06-20 18:39:14 +08:00
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
b9e98c2b5e
Add repair-repo to fix corrupt fs ( #657 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2024-04-29 15:34:38 +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
2d3513a631
Support unix-socket auth for mariadb ( #642 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2023-12-26 17:01:20 +08:00
feiniks
6063e09ccc
Check repo_id and path is not null ( #634 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2023-11-02 14:02:51 +08:00
feiniks
864cef1c22
Support unix_socket option of database ( #623 )
...
* Support unix_socket option of database
* Set default auth plugin when use unix_socket
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2023-06-27 16:59:19 +08:00
feiniks
47c694e22f
Support tls for libmariadb ( #613 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2023-05-18 16:48:48 +08:00
feiniks
b558426da8
Add ca_path and skip_verify option for mysql ( #610 )
...
* Add ca_path and skip_verify option for mysql
* Add comment
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2023-04-23 14:39:40 +08:00
feiniks
ad5ce70ffb
Get repo list add return virtual repos ( #605 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2023-03-20 10:11:57 +08:00
feiniks
d38c212ba1
Return one more commit when get repo history ( #603 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2023-03-11 11:54:50 +08:00
feiniks
499e8e8d17
Add search_files_by_path RPC ( #599 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2023-02-25 11:24:50 +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
feiniks
40b59d56a9
Fix empty commit when rename a dir ( #572 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2022-12-13 19:23:33 +08:00
杨赫然
c0b7ba6013
Fix sql column error
2022-12-08 14:36:51 +08:00
feiniks
4489898fe1
Improve mysql connection pool ( #581 )
...
* Improve mysql connection pool
* Add re-query log
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2022-12-05 18:36:26 +08:00
feiniks
8e9367c9a1
Delete sub query ( #582 )
...
* Delete sub query
* Use where to filter org id
* Fix ci error
Co-authored-by: 杨赫然 <heran.yang@seafile.com >
2022-12-05 18:35:41 +08:00
feiniks
0db03851a0
File names in json format ( #559 )
2022-06-16 12:36:34 +08:00
feiniks
cf479cefc2
Add get repo by id prefix RPC ( #557 )
...
Add get repos by id prefix test
del ret_corrupted parameter
2022-05-30 14:07:58 +08:00
杨赫然
f7cefa60d7
Fix support enc v3 repo
2022-05-12 15:54:43 +08:00
feiniks
62fc07fe2e
Don't restore repo when failed to get head commit and fix a memory leak ( #532 )
2021-12-18 10:26:35 +08:00
杨赫然
3ef6fed844
Merge branch '8.0'
2021-12-09 11:53:41 +08:00
feiniks
e2b3437710
Fix memory leak ( #527 )
2021-12-08 17:25:33 +08:00
feiniks
2235998158
Modify memory free order ( #526 )
2021-12-08 14:51:45 +08:00
sun20121818
ca63ba1269
Add mysql connect option. ( #501 )
2021-10-08 16:28:28 +08:00
Xiangyue Cai
f681fa6d94
search group members rpc ( #489 )
2021-09-06 18:20:28 +08:00
Xiangyue Cai
c006d4d0d6
remove redundant log ( #485 )
2021-08-20 18:19:04 +08:00
Xiangyue Cai
4f5af75f18
no need to check if the user is staff ( #465 )
2021-06-10 17:45:06 +08:00
Xiangyue Cai
0bdf63c684
fixed compile warning ( #464 )
2021-06-09 11:03:17 +08:00
Xiangyue Cai
74e4c3cad6
uniform log date format ( #447 )
2021-03-24 11:49:41 +08:00
feiniks
a44e185162
Update user quota for update emailuser id ( #458 )
2021-03-18 11:24:32 +08:00