1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-31 06:46:13 +00:00
Commit Graph

86 Commits

Author SHA1 Message Date
feiniks
9f5fcdfe4d Add trace of pprof (#655)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-03-26 18:04:00 +08:00
feiniks
549c6b827f Add error log for block write failed (#652)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-03-14 17:10:28 +08:00
feiniks
058b7405f1 Fix download file traffic statistics error (#651)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-03-13 19:49:03 +08:00
feiniks
bd6b87c2e5 Support error log rotate and notification log rotate (#649)
* Support error log rotate and notification log rotate

* Add comment

* Modify log name

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-03-12 22:47:43 +08:00
feiniks
1e4790b3a2 Return 404 when notification server is disabled (#643)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-02-01 16:31:59 +08:00
feiniks
2d667a5c99 Check files with same name before post (#638)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-11-22 16:57:13 +08:00
feiniks
f659a910c9 Fix don't save server file when gen conflict file (#636)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-11-02 14:04:20 +08:00
feiniks
cc42c87d71 Fix empty commit because of encode add a newline (#633)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-10-21 10:23:21 +08:00
杨赫然
2de172f6cc Merge branch '10.0' 2023-07-25 12:05:28 +08:00
杨赫然
a19aacf198 Fix create closer error 2023-07-25 11:17:50 +08:00
杨赫然
910c338592 Merge branch '10.0' 2023-07-25 10:58:48 +08:00
feiniks
e38774ac7e Improve worker pool (#626)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-07-20 16:39:43 +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
29e48dafa9 Allow comment sybols # and ; inside values (#615)
Co-authored-by: heran yang <heran.yang@seafile.com>
2023-05-31 15:11:44 +08:00
feiniks
4d02cb14a3 Don't escape HTML characters (#614)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-05-25 12:28:22 +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
b5993456e3 Add retry count to 10 (#609)
* Add retry count to 10

* Add sleep interval and print max retry count

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-04-21 17:53:29 +08:00
feiniks
760e805fa0 Add skip_verify for go tls (#608)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-04-21 12:13:33 +08:00
feiniks
db09baec1b Handle crypt for zip files (#606)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-04-04 14:07:28 +08:00
feiniks
6ca4f18d31 Fix define type error (#604)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-03-16 11:37:47 +08:00
feiniks
9173f217a4 Send repo update event to notification server (#602)
* Send repo update event to notification server

* Add option to manage configuration

* Init default options at start

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-03-11 12:14:39 +08:00
feiniks
dcda34478f go fileserver write header before write body (#591)
* go fileserver write header before write body

* Set json header when ret-json is true

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-01-29 15:59:24 +08:00
feiniks
88438dd0fe Fix edit origin repo error (#592)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-01-29 15:05:59 +08:00
feiniks
47efb16c92 Set fixed_block_size unit to M (#589)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-01-05 17:06:34 +08:00
杨赫然
852bc4bd38 Merge branch '9.0' 2022-12-29 13:47:54 +08:00
feiniks
5289841dd8 Fix error in calculating the number of blocks (#588)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-12-29 12:32: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
杨赫然
c0b7ba6013 Fix sql column error 2022-12-08 14:36:51 +08:00
杨赫然
079a8b65a5 Don't use cache when merge 2022-12-06 17:04:44 +08:00
feiniks
b936ee1eb1 go fileserver support enc v4 (#585)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-12-06 14:51:17 +08:00
杨赫然
5c741c15ca Merge branch '9.0' 2022-12-06 14:47:15 +08:00
feiniks
760937015d go fileserver support enc v4 (#585)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-12-06 14:39:26 +08:00
feiniks
f02d2e5304 Fix root_id is empty in commit (#586)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-12-06 14:38:45 +08:00
feiniks
df78d10ec1 Reuse zlib ReadCloser and add timeout for get fs id list (#508)
* Reuse zlib ReadCloser and add timeout for get fs id list

* Reuse zlib reader

* Get seafile and seafdir with zlib reader

Co-authored-by: 杨赫然 <heran.yang@seafile.com>

Use json-iterator/go to parse fs objects (#510)

Co-authored-by: 杨赫然 <heran.yang@seafile.com>

Add cache for seafdir (#511)

* Add cache for seafile and seafdir

* Add ttl for fs cache

* Use MB unit and add a comment

Co-authored-by: 杨赫然 <heran.yang@seafile.com>

Close object after reading finished (#512)

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-12-06 10:45:39 +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
620438fbb5 Clean go unused log (#579)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-10-14 12:10:53 +08:00
feiniks
04350f2b99 Merge same repo once and check fs object is valid (#578)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-09-28 16:43:07 +08:00
feiniks
955d4c5277 Add workpool to calculate fs id list (#574)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-09-03 18:22:46 +08:00
feiniks
be260e4c6a Clear error when retry upload (#568)
* Clear error when retry upload

* Add go_log_level option

* Fix type mismatch

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-07-21 16:29:47 +08:00
feiniks
318e850ccb Go Retry upload when detecting concurrent uploads (#567)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-07-20 11:25:58 +08:00
feiniks
e14e820d5e Modify profile option (#566)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-07-15 16:03:31 +08:00
feiniks
3a47cf7ab2 Fix normalize utf8 path for go (#565)
* Fix normalize utf8 path for go

* Fix normalize utf8 path for go
2022-07-13 18:18:32 +08:00
feiniks
2be8f28df6 Add enable_profiling option (#563) 2022-07-13 17:58:48 +08:00
feiniks
881c270aa8 Set unix time to repo token sync time (#558) 2022-05-30 14:10:18 +08:00
feiniks
e7f96976e9 Fix downloading non-ASCII filename (#555)
* Fix downloading non-ASCII filename

* Add comment

* Modify comment
2022-05-25 09:37:58 +08:00
feiniks
625957bbf9 Add profile for go fileserver (#554) 2022-05-23 17:38:51 +08:00
feiniks
5e33fc3476 Go fileserver support enc v3 repo (#552)
* Go fileserver support enc v3 repo

* add comment
2022-04-11 18:48:18 +08:00
feiniks
c31e5dd25d Don't merge virtual repo when get a error which isn't path no exist (#548)
* Don't merge virtual repo when get a error which isn't path no exist

* Modify log info
2022-03-22 16:42:29 +08:00
feiniks
96b33251ce Modify log format and don't print network error (#546)
* Modify log format and don't print network error

* Don't print network error and content canceled error

* Modify function name
2022-03-02 16:03:16 +08:00
feiniks
35f6678c1c Set zip suffix to zip file (#545) 2022-02-23 15:05:49 +08:00