config.yaml 425 Bytes
Newer Older
kzkzzzz's avatar
kzkzzzz committed
1 2 3
server:
  http:
    addr: 0.0.0.0:8000
kzkzzzz's avatar
kzkzzzz committed
4
    timeout: 2 # 单位秒
kzkzzzz's avatar
kzkzzzz committed
5 6
  grpc:
    addr: 0.0.0.0:9000
kzkzzzz's avatar
kzkzzzz committed
7
    timeout: 2
kzkzzzz's avatar
kzkzzzz committed
8
data:
kzkzzzz's avatar
kzkzzzz committed
9 10 11 12 13 14
  mysql:
    dsn: remote:admin666@tcp(127.0.0.1:3306)/test?loc=Local&charset=utf8mb4&writeTimeout=3s&readTimeout=3s&timeout=1s&parseTime=true
    maxConn: 8
    maxIdleConn: 2
    maxLifetime: 1800 # 连接有效时间,单位秒
    debug: true
kzkzzzz's avatar
kzkzzzz committed
15 16
  redis:
    addr: 127.0.0.1:6379
kzkzzzz's avatar
kzkzzzz committed
17 18
    password: ""
    db: 15