Server: Name: "service.demo" ConsulAddr: - 192.168.233.1:8500 Grpc: Addr: "" # 为空随机端口, 使用注册中心服务发现 Http: Addr: "" Mysql: # 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 # 连接池内连接有效时间,单位秒 Debug: true Redis: Addr: 127.0.0.1:6379 Password: "" DB: 15 Log: Color: true Level: DEBUG