123456789101112131415161718192021222324252627282930313233343536 |
- [log]
- stdout = true
- # dir = "./log/bbq"
- v = 5
- [grpc]
- addr = "0.0.0.0:9004"
- timeout = "1s"
- [bm]
- addr = "0.0.0.0:8804"
- timeout = "2s"
- [mysql]
- addr = "172.16.38.91:3306"
- dsn = "root:123456@tcp(172.16.38.91:3306)/bbq?allowNativePasswords=true&timeout=800ms&readTimeout=1200ms&writeTimeout=800ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
- readDSN = ["root:123456@tcp(172.16.38.91:3306)/bbq?allowNativePasswords=true&timeout=800ms&readTimeout=1200ms&writeTimeout=800ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
- active = 20
- idle = 10
- idleTimeout ="4h"
- queryTimeout = "800ms"
- execTimeout = "800ms"
- tranTimeout = "1000ms"
- [redis]
- name = "bbq-web"
- proto = "tcp"
- addr = "172.16.38.91:6379"
- idle = 10
- active = 10
- dialTimeout = "1s"
- readTimeout = "1s"
- writeTimeout = "1s"
- idleTimeout = "10s"
- expire = "1m"
|