Simplify endpoint examples in README

This commit is contained in:
shi.changliang 2026-06-05 16:09:22 +08:00
parent d0acb9c549
commit 759ebbae22
3 changed files with 11 additions and 9 deletions

View file

@ -19,30 +19,32 @@ Obsync 是一个 Obsidian 社区插件,用于通过 OSS / S3 兼容对象存
## 对象存储端点
同步必须填写服务商的 **S3 API Endpoint**不要填写自定义访问域名、CDN 域名或私有下载域名。
自定义域名通常用于浏览器访问、公开文件下载或分享链接;同步需要的是 `PUT`、`GET`、`DELETE`、`ListObjects` 和 S3 Signature V4应使用对象存储服务商提供的 S3 API 入口。
同步端点填写服务商提供的 **S3 API Endpoint**
### Cloudflare R2
```text
Endpoint: https://<account-id>.r2.cloudflarestorage.com
Region: auto
Bucket: ideabase
Bucket: <桶名称>
```
Cloudflare R2 同步不需要绑定自定义域名。
### 七牛云
```text
Endpoint: https://s3.<region>.qiniucs.com
Region: <region>
Bucket: <桶名称>
```
示例:
```text
Endpoint: https://s3.cn-north-1.qiniucs.com
Region: cn-north-1
Bucket: ideabase
```
七牛云同步不使用自定义下载域名,例如 `http://oss.example.com`。这类域名可能返回 `download token not specified`,它不是 S3 API endpoint。
## 本地开发
```bash

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 KiB

After

Width:  |  Height:  |  Size: 126 KiB

View file

@ -7,7 +7,7 @@
<rect x="126" y="240" width="1188" height="134" rx="14" fill="#ffffff" stroke="#d9d9de"/>
<text x="166" y="295" font-family="-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif" font-size="27" font-weight="700" fill="#25252b">S3 API Endpoint</text>
<text x="166" y="336" font-family="-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif" font-size="22" fill="#66666f">用于对象存储读写同步,不是自定义访问域名或 CDN 域名</text>
<text x="166" y="336" font-family="-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif" font-size="22" fill="#66666f">填写服务商提供的 S3 API 地址格式</text>
<text x="800" y="310" font-family="SFMono-Regular,Menlo,Consolas,monospace" font-size="22" fill="#333">https://s3.cn-north-1.qiniucs.com</text>
<rect x="126" y="392" width="1188" height="114" rx="14" fill="#ffffff" stroke="#d9d9de"/>

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB