改进非订阅用户集市包下载速度 Fix https://github.com/siyuan-note/siyuan/issues/5779

This commit is contained in:
Liang Ding 2022-09-01 11:53:07 +08:00
parent b0de05da78
commit 00e0f6b7de
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
7 changed files with 21 additions and 25 deletions

View file

@ -34,11 +34,10 @@ var (
)
const (
ServerPort = "6806" // HTTP/WebSocket 端口
AliyunServer = "https://siyuan-sync.b3logfile.com" // 云端服务地址,阿里云负载均衡,用于接口,数据同步文件上传、下载会走七牛云 OSS http://siyuan-data.b3logfile.com
BazaarStatServer = "http://bazaar.b3logfile.com" // 集市包统计服务地址,直接对接 Bucket 没有 CDN 缓存
BazaarOSSServer = "https://oss.b3logfile.com" // 云端对象存储地址,七牛云,仅用于读取小文件(比如配置 json不用于读取包内容如果是订阅会员则用于读取包内容
BazaarOSSFileServer = "https://oss0.b3logfile.com" // 云端对象存储文件服务地址Cloudflare用于读取包内容
ServerPort = "6806" // HTTP/WebSocket 端口
AliyunServer = "https://siyuan-sync.b3logfile.com" // 云端服务地址,阿里云负载均衡,用于接口,数据同步文件上传、下载会走七牛云 OSS http://siyuan-data.b3logfile.com
BazaarStatServer = "http://bazaar.b3logfile.com" // 集市包统计服务地址,直接对接 Bucket 没有 CDN 缓存
BazaarOSSServer = "https://oss.b3logfile.com" // 云端对象存储地址,七牛云,仅用于读取集市包
)
func ShortPathForBootingDisplay(p string) string {