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

Mysql:
kzkzzzz's avatar
kzkzzzz committed
11
  Dsn: remote:admin666@tcp(127.0.0.1:3306)/test?loc=Local&charset=utf8mb4&writeTimeout=3s&readTimeout=3s&timeout=1s&parseTime=true
kzkzzzz's avatar
kzkzzzz committed
12 13 14 15 16 17 18 19 20 21 22 23 24
  MaxConn: 8
  MaxIdleConn: 2
  MaxLifetime: 1800 # 连接有效时间,单位秒
  Debug: true

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

Log:
  Color: true
  Level: DEBUG