mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 23:11:49 +08:00
🎨 桌面端内核进程使用随机端口 https://github.com/siyuan-note/siyuan/issues/4952
This commit is contained in:
parent
7287729b8e
commit
d1d9b7a3b2
@ -603,10 +603,6 @@ const initKernel = (initData) => {
|
||||
}
|
||||
|
||||
const getKernelPort = async () => {
|
||||
if (isDevEnv) {
|
||||
return kernelPort
|
||||
}
|
||||
|
||||
await sleep(200)
|
||||
let gotPort = false
|
||||
let count = 0
|
||||
|
@ -34,7 +34,7 @@ var (
|
||||
)
|
||||
|
||||
const (
|
||||
ServerPort = "6806" // HTTP/WebSocket 端口
|
||||
ServerPort = "0" // 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" // 云端对象存储地址,七牛云,仅用于读取集市包
|
||||
|
Loading…
Reference in New Issue
Block a user