feat: perf docker-compose.yml

feat: update socket host env
feat: udpate doc
This commit is contained in:
https://blog.iamtsm.cn
2023-08-15 15:07:35 +08:00
parent 540b1d1b90
commit ab27863fa5
6 changed files with 95 additions and 148 deletions

View File

@@ -1,5 +1,5 @@
{
"version": "10.3.8",
"version": "10.4.0",
"socket": {
"port": "请到 tlrtcfile.env 中进行配置",
"host": "请到 tlrtcfile.env 中进行配置"

View File

@@ -28,9 +28,11 @@ function initData(req, res) {
ip = "127.0.0.1"
}
let wsHost = conf.socket.host || ip;
let data = {
version : conf.version,
wsHost: conf.socket.host || ip,
wsHost: "ws://" + wsHost + ":" + conf.socket.port,
rtcConfig: { iceServers },
options: webrtcConf.options,
logo : utils.genClientLogo(),
@@ -39,9 +41,11 @@ function initData(req, res) {
res.json(data)
}else{
let wsHost = conf.socket.host || ip;
let data = {
version : conf.version,
wsHost: conf.socket.host,
wsHost: "wss://" + wsHost + ":" + conf.socket.port,
rtcConfig: { iceServers },
options: webrtcConf.options,
logo : utils.genClientLogo(),