You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

55 lines
1.2 KiB

[grpc]
maxSendMsgSize = "8Mi"
maxRecvMsgSize = "8Mi"
readBufferSize = "8Ki"
writeBufferSize = "8Ki"
[grpc.keepalive]
idleTimeout = "60s" # 空闲连接超时
keepAliveInterval = "60s" # 发送 ping 的间隔
keepAliveTimeout = "20s" # ping 超时
maxLifeTime = "2h"
[etcd]
endpoints = ["10.6.0.17:7079"]
username = ""
password = ""
[consul]
address = "10.6.0.17:8500"
[nats]
url = "nats://@10.6.0.17:7222"
[database.mysql]
logMode = "info"
# https://gorm.io/zh_CN/docs/connecting_to_the_database.html
mysql = { DSN = "root:123456@tcp(10.6.0.17:7306)/sig?charset=utf8&parseTime=True&loc=Local" }
[database.postgres]
logMode = "info"
postgres = { DSN = "host=10.6.0.17 port=5432 user=postgres password=123456 dbname=sig sslmode=disable TimeZone=Asia/Shanghai" }
[database.clickhouse]
# dsn = "clickhouse://user:password@192.168.0.137:9000/game?dial_timeout=10s&read_timeout=20s"
addr = "10.6.0.17:9000"
database = "sig"
username = "root"
password = "123456"
dial_timeout = 10
read_timeout = 20
logsql = true
logsqlCk = false
[database.kvrocks]
addr = "10.6.0.17:7666"
password = ""
minIdleConns = 3
[tsdb]
active = "victoriametrics"
[tsdb.victoriametrics]
addr = "http://10.6.0.17:8428"