Skip to content

Commit

Permalink
fix: 增加websocket代理地址
Browse files Browse the repository at this point in the history
  • Loading branch information
liuhuapiaoyuan committed Feb 19, 2024
1 parent 45e87aa commit b30f4ba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
4 changes: 0 additions & 4 deletions backend-api/backend-api.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,6 @@ func ProxyAll(r *ghttp.Request) {

if len(matches) > 1 {
modifiedBody = strings.Replace(modifiedBody, "wss://"+matches[1]+"/client/hubs/conversations?", WsUpStream+"/client/hubs/conversations?host="+matches[1]+"&", -1)
g.Log().Debug(ctx, "wss替换成ws", matches[1])
} else {

g.Log().Debug(ctx, "wss替换成ws失败", bodyStr)
}
}

Expand Down
10 changes: 6 additions & 4 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,15 @@ modules:
enable: 1

# 接入网关地址
CHATPROXY: "http://host.docker.internal:7999"
ARKOSE_URL: "https://chatgpt.ggss.club/arkose/v2/"
CHATPROXY: "https://demo.xyhelper.cn"
#CHATPROXY: "http://host.docker.internal:7999"
#CHATPROXY: "https://chatgpt.ggss.club/gateway"
#ARKOSE_URL: "https://chatgpt.ggss.club/arkose/v2/"
# 接入网关的authkey
AUTHKEY: "maidou"
AUTHKEY: "xyhelper"
ONLYTOKEN: false
CDNHOST: "https://file.chatgpt.ggss.club"
ASSET_PREFIX: "https://cdn.chatgpt.ggss.club"
# websocket服务地址
WS_SERVICE: "ws://host.docker.internal:7999"
WS_SERVICE: "ws://127.0.0.1:7999"
# 5a07e29c-31d8-4976-ba66-f183598587d9

0 comments on commit b30f4ba

Please sign in to comment.