config.yaml 926 Bytes
Newer Older
kzkzzzz's avatar
kzkzzzz committed
1 2
# 服务配置
Server:
kzkzzzz's avatar
kzkzzzz committed
3
  Name: "hilo.service.demo"
kzkzzzz's avatar
kzkzzzz committed
4
  Version: "1.0.0"
kzkzzzz's avatar
kzkzzzz committed
5
  Mode: local
kzkzzzz's avatar
kzkzzzz committed
6
  Grpc:
kzkzzzz's avatar
kzkzzzz committed
7
    Addr: "" # 为空随机端口, 使用注册中心服务发现
kzkzzzz's avatar
kzkzzzz committed
8 9
    Timeout: 3 # 服务超时时间, 单位秒
  Http:
kzkzzzz's avatar
kzkzzzz committed
10
    Addr: "" # 为空随机端口, 使用注册中心服务发现
kzkzzzz's avatar
kzkzzzz committed
11 12 13 14 15 16 17 18 19 20 21 22 23
    Timeout: 3 # 服务超时时间, 单位秒

# 注册中心
Consul:
  Addr: 192.168.233.1:8500

# jaeger链路追踪 https://github.com/jaegertracing/jaeger
Jaeger:
  Url: http://192.168.233.1:14268/api/traces

# 数据源
Data:
  Mysql:
kzkzzzz's avatar
kzkzzzz committed
24
    Dsn: temp:temp666@tcp(127.0.0.1:3306)/hilo?loc=Local&charset=utf8mb4&writeTimeout=3s&readTimeout=3s&timeout=2s&parseTime=true
kzkzzzz's avatar
kzkzzzz committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38
    MaxConn: 16 # 连接池最大连接数
    MaxIdleConn: 4 # 连接池最小连接数
    MaxLifetime: 1800 # 连接池内连接有效时间,单位秒
    Debug: true

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

# 日志
Log:
  Color: true
  Level: DEBUG