|
@@ -23,7 +23,7 @@ websocket:
|
|
|
read_buffer_size: 1024
|
|
|
# 写消息体最大的 buffer size
|
|
|
write_buffer_size: 1024
|
|
|
- nats_url: "nats://10.29.40.221:4333"
|
|
|
+ nats_url: "nats://172.20.0.1:4222"
|
|
|
|
|
|
|
|
|
logger:
|
|
@@ -35,7 +35,7 @@ logger:
|
|
|
|
|
|
# mysql connection config
|
|
|
mysql:
|
|
|
- dsn: "root:7QJARDvYLkkYZGnw@tcp(10.29.113.11:3306)/w303b?charset=utf8mb4&parseTime=true&loc=Local"
|
|
|
+ dsn: "root:7QJARDvYLkkYZGnw@tcp(172.20.0.1:3306)/w303b?charset=utf8mb4&parseTime=true&loc=Local"
|
|
|
ignore_record_not_found_error: true # Ignore ErrRecordNotFound error for logger
|
|
|
max_idle_conns: 1000 # 设置空闲连接池中连接的最大数量
|
|
|
skip_default_transaction: true # Ignore ErrRecordNotFound error for logger
|
|
@@ -48,12 +48,12 @@ mysql:
|
|
|
|
|
|
# nats connection config
|
|
|
nats:
|
|
|
- addr: "nats://10.29.40.221:4333"
|
|
|
+ addr: "nats://172.20.0.1:4222"
|
|
|
subject: "clients.message" # 消息通道
|
|
|
|
|
|
# redis connection config
|
|
|
redis:
|
|
|
- addr: "10.29.40.221:6379"
|
|
|
+ addr: "172.20.0.1:6379"
|
|
|
# REDIS_CHANNEL: 'message'
|
|
|
connect_key: "connects"
|
|
|
db: 0
|