feiniks
0405196b1a
Fix crash when mysql stop ( #755 )
...
Co-authored-by: Heran Yang <heran.yang@seafile.com>
2025-04-09 17:44:26 +08:00
feiniks
c7cf6f7d51
Don't record http method ( #754 )
...
Co-authored-by: Heran Yang <heran.yang@seafile.com>
2025-04-08 18:17:31 +08:00
feiniks
69932ee8ae
Get notification server url from env ( #752 )
...
Co-authored-by: Heran Yang <heran.yang@seafile.com>
2025-04-08 11:51:11 +08:00
feiniks
2a6ddc4851
Use mysql database by default ( #751 )
...
Co-authored-by: yangheran <heran.yang@seafile.com>
2025-04-03 15:49:18 +08:00
feiniks
05dd35b4c9
Notify repo size change to redis ( #750 )
...
Co-authored-by: Heran Yang <heran.yang@seafile.com>
2025-04-02 17:11:24 +08:00
feiniks
6f2927c0d2
Use seaf->http_server->priv after set evhtp hook ( #749 )
...
* Use seaf->http_server->priv after set evhtp hook
* Fix ci error
---------
Co-authored-by: Heran Yang <heran.yang@seafile.com>
2025-04-02 16:33:31 +08:00
feiniks
27fc5b3197
Check if env is empty string ( #748 )
...
* Check if env is empty string
* Fix ci error
* Check if env is empty string
* Fix security issue for jwt
---------
Co-authored-by: Heran Yang <heran.yang@seafile.com>
2025-04-01 18:22:25 +08:00
feiniks
490f8d431c
Add metrics ( #747 )
...
* Add metrics
* Add obj_cache in session
---------
Co-authored-by: Heran Yang <heran.yang@seafile.com>
2025-03-31 16:46:24 +08:00
欢乐马
c963a54a82
rm CCNET_CONF_DIR ( #746 )
2025-03-28 15:12:50 +08:00
Daniel Pan
537763b119
Merge pull request #745 from haiwen/rm-seaserv-CCNET_CONF_DIR
...
rm seaserv CCNET_CONF_DIR
2025-03-27 21:30:03 +08:00
skywalker
f53cf84b40
not check seaserv CCNET_CONF_DIR
2025-03-27 18:11:50 +08:00
Heran Yang
661d486dfe
Adjust rpc name
2025-03-19 12:00:56 +08:00
feiniks
24b61c929c
Add upgrade repo enc algo RPC ( #743 )
...
* Add upgrade repo enc algo RPC
* Add test upgrade repo enc algo
* Add test upgrade repo enc algo
---------
Co-authored-by: Heran Yang <heran.yang@seafile.com>
2025-03-19 11:31:05 +08:00
feiniks
7753e8e02a
Return error message when failed to check file access ( #737 )
...
* Return error message when failed to check file access
* Update python to 3.12.9
* Update ci python
* Set error_msg to error_str
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2025-03-15 10:27:20 +08:00
feiniks
9efe0b58fd
Add default parameter for update_role_emailuser ( #742 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2025-03-07 10:18:28 +08:00
feiniks
1502be4a42
Upgrade pkg version of ristretto ( #741 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2025-03-03 14:20:13 +08:00
feiniks
0aa399df50
Upgrade pkg version of ristretto ( #740 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2025-03-03 12:39:35 +08:00
feiniks
d5fa18f120
Adjust size of max_download_dir_size and max_upload_size ( #739 )
...
* Adjust size of max_download_dir_size and max_upload_size
* Update ci python
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2025-02-26 11:47:08 +08:00
feiniks
4181851fd0
Set fs cache limit to 4G by default ( #735 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2025-01-22 16:08:54 +08:00
feiniks
29829b5dca
Check if repo_id is valid and set repo_id to VRepoInfo ( #733 )
...
* Check if repo_id is valid and set repo_id to VRepoInfo
* Don't retain when traverse base commit
* Skip check blocks when verify base commit
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2025-01-13 17:51:59 +08:00
feiniks
e225c236e1
Print app name when SEAFILE_LOG_TO_STDOUT is true ( #734 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2025-01-13 11:48:26 +08:00
feiniks
e2d771852f
Fix skip cache error ( #732 )
...
* Fix skip cache error
* Delete token cache when failed to get email
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-12-30 17:32:41 +08:00
feiniks
ee9ad5ef39
Return 409 when gc conflict ( #731 )
...
* Return 409 when gc conflict
* Go return 409 when gc conflict
* Return gc conflict when sync repo
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-12-30 15:03:54 +08:00
feiniks
de62852244
Only use tmpfiles dir for blocks ( #730 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-12-27 16:58:27 +08:00
feiniks
db8c637c68
Update python to 3.12.8 for ci test ( #729 )
...
* Update python to 3.12.8 for ci test
* Fix error for notification server
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-12-19 12:32:37 +08:00
Josue-T
da31024f8f
On notification server, get server host and port from environement if set ( #728 )
2024-12-16 19:00:31 +08:00
feiniks
c11e8ccbe9
Send events use json format ( #726 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-12-13 11:01:24 +08:00
feiniks
d04c324b24
Go fileserver support set db charset ( #724 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-12-09 18:31:55 +08:00
feiniks
2ab66f0f93
Add view for video and image ( #723 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-12-09 16:55:45 +08:00
feiniks
e8c0e81b57
Add op to download or view file ( #722 )
...
* Add op to download or view file
* Use download-link op and statistic view
* Go add statictic view
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-12-05 15:08:25 +08:00
feiniks
04e190ce7e
Set site root to / when site root is empty string ( #721 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-12-05 09:53:58 +08:00
feiniks
968b22881c
Don't test gc when indexing blocks ( #720 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-11-26 11:52:44 +08:00
feiniks
aaa7819c34
Use post and add ip addr and user agent ( #719 )
...
* Use post and add ip addr and user agent
* Go add ip addr and user agent
* Adjust gc unit test
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-11-25 15:59:24 +08:00
feiniks
516eac3304
Output error and warning log ( #717 )
...
* Output error and warning log
* Adjust log level
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-11-23 17:33:09 +08:00
feiniks
1ceeeb2ad3
Get gc id before index blocks ( #718 )
...
* Get gc id before index blocks
* Add test gc online
* Add test gc online
* Adjust time of run gc
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-11-21 18:16:58 +08:00
杨赫然
2f68e9d79a
Unnecessary use of fmt.Sprintf
2024-11-20 16:31:19 +08:00
feiniks
d727249a08
Check if file or dir is .. ( #711 )
...
* Check if file or dir is ..
* Diff and check name is ..
* Go diff and check name is ..
* Check if ignore new name or name
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-11-20 16:21:51 +08:00
feiniks
665d0083bd
Add verify blocks after sync ( #715 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-11-18 11:34:38 +08:00
feiniks
2cf6b99f40
Use QueryEscape to encode url path ( #716 )
...
* Use QueryEscape to encode url path
* Encode url path
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-11-14 14:10:02 +08:00
feiniks
b1e7323647
Fix parse file access user error ( #714 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-11-09 14:43:25 +08:00
feiniks
ed6a292061
Read database config from seafile.conf and env ( #713 )
...
* Read database config from seafile.conf and env
* Go read database config from seafile.conf and env
* Delete ccnet.conf
* Don't need ccnet_db_name config
* Add ccnet db name env
* Delete unix_socket and don't return error when failed to read from seafile.conf
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-11-05 17:42:24 +08:00
feiniks
31887e99e9
Read database option from env ( #712 )
...
* Read database option from env
* Don't need to read config from file
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-11-05 12:42:36 +08:00
feiniks
56f220be0a
Load config from file and env ( #710 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-10-30 11:20:20 +08:00
feiniks
fdd3bc8f52
Redirect STDERR to error log ( #709 )
...
* Redirect STDERR to error log
* Add dup2.go
* Redirect error log to log file
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-10-29 10:57:03 +08:00
feiniks
abe4537648
Format notification server log and redirect stderr to log ( #707 )
...
* Format notification server log and redirect stderr to log
* Set http server error log
* Delete unused file
* Modify pkg name
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-10-26 16:16:35 +08:00
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
4adceee73d
Escape filePath before calling check file access ( #703 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-20 11:26:41 +08:00
feiniks
6649fada8c
Parse file path from url ( #702 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-19 16:59:35 +08:00