|
@@ -1,19 +1,19 @@
|
|
|
-environment = "test"
|
|
|
+environment = "release"
|
|
|
name = "websocket"
|
|
|
port = 10082
|
|
|
|
|
|
[websocket]
|
|
|
connectSize = 1024 # 控制消息 Channel 大小
|
|
|
-heartbeatWait = 120 # 心跳超时
|
|
|
+heartbeatWait = 360 # 心跳超时 6min=360s
|
|
|
messageSize = 256 # 消息 channel 大小
|
|
|
readBufferSize = 1024 # 读消息体最大的 buffersize
|
|
|
-readWait = 20 # 读超时
|
|
|
+readWait = 60 # 读超时, 首次心跳事件 1min=60s
|
|
|
writeBufferSize = 1024 # 写消息体最大的 buffersize
|
|
|
writeWait = 10 # 写超时
|
|
|
-natsUrl = "nats://106.75.230.4:4333"
|
|
|
+natsUrl = "nats://10.29.40.221:4333"
|
|
|
|
|
|
[mysql]
|
|
|
-dsn = "root:7QJARDvYLkkYZGnw@tcp(10.29.113.11:3306)/sikey?charset=utf8mb4&parseTime=true&loc=Local"
|
|
|
+dsn = "root:7QJARDvYLkkYZGnw@tcp(10.29.113.11:3306)/w303b?charset=utf8mb4&parseTime=true&loc=Local"
|
|
|
# Ignore ErrRecordNotFound error for logger
|
|
|
skipDefaultTransaction = true
|
|
|
# Slow SQL threshold
|
|
@@ -29,7 +29,7 @@ maxLifetime = -1
|
|
|
maxOpenConns = 100
|
|
|
|
|
|
[redis]
|
|
|
-addr = "10.29.110.39:6379"
|
|
|
+addr = "10.29.40.221:6379"
|
|
|
channel = "message"
|
|
|
connectKey = "connects"
|
|
|
db = 0
|