config.yaml 643 Bytes
Newer Older
kzkzzzz's avatar
kzkzzzz committed
1 2 3 4 5 6 7 8 9 10
Server:
  Name: "service.wallet"
  ConsulServer:
    - 192.168.233.1:8500
  Grpc:
    Addr: "" # 为空随机端口, 使用注册中心服务发现
  Http:
    Addr: ""

Client:
11
  Member: "service.member"
kzkzzzz's avatar
kzkzzzz committed
12 13

Mysql:
14
  Dsn: master:Xt6fW2rNRvYZjtYW@tcp(rm-j6c982j8ih8x3d2yz2o.mysql.rds.aliyuncs.com:3306)/master?loc=Local&charset=utf8mb4&writeTimeout=3s&readTimeout=3s&timeout=2s&parseTime=true
kzkzzzz's avatar
kzkzzzz committed
15 16 17
  MaxConn: 16 # 连接池最大连接数
  MaxIdleConn: 4 # 连接池最小连接数
  MaxLifetime: 1800 # 连接池内连接有效时间,单位秒
kzkzzzz's avatar
kzkzzzz committed
18 19 20 21 22 23 24 25 26 27 28
  Debug: true

Redis:
  Addr: 127.0.0.1:6379
  Password: ""
  DB: 15

Log:
  Color: true
  Level: DEBUG