1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-05-15 11:29:34 +00:00
Commit Graph

894 Commits

Author SHA1 Message Date
Heran Yang
e22e21c0a5 Merge branch '12.0' 2025-05-09 14:43:20 +08:00
feiniks
af4b73515c
Get dot from the end of the string ()
* Get dot from the end of the string

* Upgrade ci python

---------

Co-authored-by: Heran Yang <heran.yang@seafile.com>
2025-05-09 14:36:25 +08:00
feiniks
0405196b1a
Fix crash when mysql stop ()
Co-authored-by: Heran Yang <heran.yang@seafile.com>
2025-04-09 17:44:26 +08:00
feiniks
c7cf6f7d51
Don't record http method ()
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 ()
Co-authored-by: Heran Yang <heran.yang@seafile.com>
2025-04-08 11:51:11 +08:00
feiniks
2a6ddc4851
Use mysql database by default ()
Co-authored-by: yangheran <heran.yang@seafile.com>
2025-04-03 15:49:18 +08:00
feiniks
05dd35b4c9
Notify repo size change to redis ()
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 ()
* 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 ()
* 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 ()
* 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 () 2025-03-28 15:12:50 +08:00
Daniel Pan
537763b119
Merge pull request 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 ()
* 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 ()
* 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 ()
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2025-03-07 10:18:28 +08:00
feiniks
1502be4a42
Upgrade pkg version of ristretto ()
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2025-03-03 14:20:13 +08:00
feiniks
0aa399df50
Upgrade pkg version of ristretto ()
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 ()
* 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
fde8864542
Return error message when failed to check file access ()
* 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-02-14 14:39:19 +08:00
feiniks
4181851fd0
Set fs cache limit to 4G by default ()
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 ()
* 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 ()
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2025-01-13 11:48:26 +08:00
feiniks
e2d771852f
Fix skip cache error ()
* 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 ()
* 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 ()
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 ()
* 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 () 2024-12-16 19:00:31 +08:00
feiniks
c11e8ccbe9
Send events use json format ()
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-12-13 11:01:24 +08:00
feiniks
d04c324b24
Go fileserver support set db charset ()
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-12-09 18:31:55 +08:00
feiniks
2ab66f0f93
Add view for video and image ()
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-12-09 16:55:45 +08:00
feiniks
e8c0e81b57
Add op to download or view file ()
* 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 ()
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-12-05 09:53:58 +08:00
feiniks
968b22881c
Don't test gc when indexing blocks ()
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 ()
* 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 ()
* 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 ()
* 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 .. ()
* 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 ()
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-11-18 11:34:38 +08:00
feiniks
2cf6b99f40
Use QueryEscape to encode url path ()
* 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 ()
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 ()
* 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 ()
* 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 ()
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-10-30 11:20:20 +08:00
feiniks
fdd3bc8f52
Redirect STDERR to error log ()
* 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 ()
* 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 ()
* 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 ()
* 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