mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-29 19:56:10 +01:00
🎨 Improve S3/WebDAV data sync config https://github.com/siyuan-note/siyuan/issues/12923
This commit is contained in:
parent
e25e8042ba
commit
b32257cf1c
16 changed files with 648 additions and 622 deletions
|
|
@ -339,7 +339,7 @@ func InitConf() {
|
|||
Conf.Sync.Mode = 1
|
||||
}
|
||||
if nil == Conf.Sync.S3 {
|
||||
Conf.Sync.S3 = &conf.S3{SkipTlsVerify: true}
|
||||
Conf.Sync.S3 = &conf.S3{PathStyle: true, SkipTlsVerify: true}
|
||||
}
|
||||
Conf.Sync.S3.Endpoint = util.NormalizeEndpoint(Conf.Sync.S3.Endpoint)
|
||||
Conf.Sync.S3.Timeout = util.NormalizeTimeout(Conf.Sync.S3.Timeout)
|
||||
|
|
|
|||
|
|
@ -584,6 +584,10 @@ func formatRepoErrorMsg(err error) string {
|
|||
msg = Conf.Language(213)
|
||||
} else if errors.Is(err, cloud.ErrCloudServiceUnavailable) {
|
||||
msg = Conf.language(219)
|
||||
} else if errors.Is(err, cloud.ErrCloudForbidden) {
|
||||
msg = Conf.language(249)
|
||||
} else if errors.Is(err, cloud.ErrCloudTooManyRequests) {
|
||||
msg = Conf.language(250)
|
||||
} else {
|
||||
logging.LogErrorf("sync failed caused by network: %s", msg)
|
||||
msgLowerCase := strings.ToLower(msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue