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

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

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

Log:
  Color: true
  Level: DEBUG