Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

开源云端同步服务实现 #6445

Closed
88250 opened this issue Nov 1, 2022 · 4 comments
Closed

开源云端同步服务实现 #6445

88250 opened this issue Nov 1, 2022 · 4 comments
Assignees
Milestone

Comments

@88250
Copy link
Member

88250 commented Nov 1, 2022

背景

siyuan-note/dejavu#1 (comment)

将云端同步服务器实现完整复刻到本地,这个实现是针对七牛云做的,作为参考实现提供给社区开发者,以备后续支持 S3 协议扩展 #6426

使用方式

注册七牛云,可以使用我们的推广链接 https://s.qiniu.com/VbQfeu

新建七牛云存储空间,访问控制设置为公开空间,并且需要配置自定义源站域名(不要配置 CDN 域名,不能使用 CDN),然后手动配置 工作空间/conf/conf.json 中的 sync.provider1 以及 qiniu,参考如下:

  "sync": {
    "cloudName": "main",
    "enabled": true,
    "mode": 1,
    "synced": 1667358208034,
    "stat": "同步于 2022-11-02 11:03:28\n\n上传/下载文件数 0/1\n上传/下载分块数 0/0\n发送/接收字节数 0 B/3.6 kB",
    "generateConflictDoc": false,
    "provider": 1,
    "qiniu": {
      "endpoint": "你的七牛云自定义源站域名,例如 http://yourdoamin.com/",
      "accessKey": "你的密钥 AK",
      "secretKey": "你的密钥 SK",
      "bucket": "存储空间名称"
    }
  },

目前该特性处于内测阶段,所以暂时只提供手动修改配置文件的配置方式,等内测稳定以后会在 #6426 中提供界面配置给普通用户使用。

开发者可参考源码:https://github.com/siyuan-note/dejavu/blob/main/cloud/qiniu.go

@88250 88250 added this to the 2.4.10 milestone Nov 1, 2022
@88250 88250 self-assigned this Nov 1, 2022
@88250 88250 changed the title 将云端同步服务器实现复刻到本地 将云端同步服务器实现完整复刻到本地 Nov 1, 2022
@88250 88250 changed the title 将云端同步服务器实现完整复刻到本地 开源云端同步服务实现 Nov 1, 2022
@mozhux
Copy link

mozhux commented Nov 1, 2022

不干了?

@leolee9086
Copy link

整点其他啥的收费服务吧。。。。。。。。

@aptexd
Copy link

aptexd commented Nov 1, 2022

考虑开通下国际捐赠渠道吧 😂

@woniuxia
Copy link

woniuxia commented Nov 2, 2022

整点其他啥的收费服务吧。。。。。。。。

感觉笔记开源后,收费服务很少啊。
特别还是本地笔记。

88250 added a commit to siyuan-note/dejavu that referenced this issue Nov 2, 2022
88250 added a commit to siyuan-note/dejavu that referenced this issue Nov 2, 2022
88250 added a commit that referenced this issue Nov 2, 2022
88250 added a commit to siyuan-note/dejavu that referenced this issue Nov 2, 2022
88250 added a commit that referenced this issue Nov 2, 2022
88250 added a commit that referenced this issue Nov 2, 2022
88250 added a commit to siyuan-note/dejavu that referenced this issue Nov 2, 2022
88250 added a commit to siyuan-note/dejavu that referenced this issue Nov 2, 2022
88250 added a commit that referenced this issue Nov 2, 2022
88250 added a commit to siyuan-note/dejavu that referenced this issue Nov 2, 2022
88250 added a commit that referenced this issue Nov 2, 2022
@88250 88250 closed this as completed Nov 2, 2022
88250 added a commit to siyuan-note/dejavu that referenced this issue Nov 2, 2022
88250 added a commit that referenced this issue Nov 2, 2022
88250 added a commit that referenced this issue Nov 2, 2022
88250 added a commit to siyuan-note/dejavu that referenced this issue Nov 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants