Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Support exporting/importing S3 and WebDAV configurations https://github.com/siyuan-note/siyuan/issues/9566

Daniel1455857410c9
diff --git a/kernel/api/sync.go b/kernel/api/sync.go
index 022566b731..e412180604 100644
--- a/kernel/api/sync.go
+++ b/kernel/api/sync.go
@@ -118,6 +118,10 @@ func importSyncProviderWebDAV(c *gin.Context) {
ret.Msg = err.Error()
return
}
+
+ ret.Data = map[string]interface{}{
+ "webdav": model.Conf.Sync.WebDAV,
+ }
}
func exportSyncProviderWebDAV(c *gin.Context) {
@@ -270,6 +274,10 @@ func importSyncProviderS3(c *gin.Context) {
ret.Msg = err.Error()
return
}
+
+ ret.Data = map[string]interface{}{
+ "s3": model.Conf.Sync.S3,
+ }
}
func exportSyncProviderS3(c *gin.Context) {