mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Support setting automatic sync interval https://github.com/siyuan-note/siyuan/issues/13448
This commit is contained in:
parent
152fa6e6e0
commit
45a6f7e29d
18 changed files with 100 additions and 12 deletions
|
|
@ -344,6 +344,12 @@ func InitConf() {
|
|||
if 0 == Conf.Sync.Mode {
|
||||
Conf.Sync.Mode = 1
|
||||
}
|
||||
if 30 > Conf.Sync.Interval {
|
||||
Conf.Sync.Interval = 30
|
||||
}
|
||||
if 60*60*12 < Conf.Sync.Interval {
|
||||
Conf.Sync.Interval = 60 * 60 * 12
|
||||
}
|
||||
if nil == Conf.Sync.S3 {
|
||||
Conf.Sync.S3 = &conf.S3{PathStyle: true, SkipTlsVerify: true}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue