From f9e670a3f641678815f696f243a2f8d992634478 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 16 Nov 2022 18:10:27 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20S3/WebDAV=20=E6=95=B0=E6=8D=AE=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E6=94=AF=E6=8C=81=E8=AE=BE=E7=BD=AE=E8=B7=B3=E8=BF=87?= =?UTF-8?q?=20HTTPS=20=E8=AF=81=E4=B9=A6=E9=AA=8C=E8=AF=81=20https://githu?= =?UTF-8?q?b.com/siyuan-note/siyuan/issues/6609?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/conf/sync.go | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/kernel/conf/sync.go b/kernel/conf/sync.go index 1c9b7edad..752c18f4c 100644 --- a/kernel/conf/sync.go +++ b/kernel/conf/sync.go @@ -39,18 +39,20 @@ func NewSync() *Sync { } type S3 struct { - Endpoint string `json:"endpoint"` // 服务端点 - AccessKey string `json:"accessKey"` // Access Key - SecretKey string `json:"secretKey"` // Secret Key - Bucket string `json:"bucket"` // 存储空间 - Region string `json:"region"` // 存储区域 - PathStyle bool `json:"pathStyle"` // 是否使用路径风格 + Endpoint string `json:"endpoint"` // 服务端点 + AccessKey string `json:"accessKey"` // Access Key + SecretKey string `json:"secretKey"` // Secret Key + Bucket string `json:"bucket"` // 存储空间 + Region string `json:"region"` // 存储区域 + PathStyle bool `json:"pathStyle"` // 是否使用路径风格 + SkipTlsVerify bool `json:"skipTlsVerify"` // 是否跳过 TLS 验证 } type WebDAV struct { - Endpoint string `json:"endpoint"` // 服务端点 - Username string `json:"username"` // 用户名 - Password string `json:"password"` // 密码 + Endpoint string `json:"endpoint"` // 服务端点 + Username string `json:"username"` // 用户名 + Password string `json:"password"` // 密码 + SkipTlsVerify bool `json:"skipTlsVerify"` // 是否跳过 TLS 验证 } const (