config.yaml 1.27 KB
Newer Older
kzkzzzz's avatar
kzkzzzz committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
# 服务配置
Server:
  Name: "hilo.service.user"
  Version: "1.0.0"
  Mode: local
  Grpc:
    Addr: "0.0.0.0:8001" # 为空随机端口, 使用注册中心服务发现
    Timeout: 3 # 服务超时时间, 单位秒

Client:
  Country:
    Endpoint: "discovery:///hilo.service.country"
  Mgr:
    Endpoint: "discovery:///hilo.service.mgr"

# 注册中心
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:
    #    Dsn: temp:temp666@tcp(127.0.0.1:3306)/site?loc=Local&charset=utf8mb4&writeTimeout=3s&readTimeout=3s&timeout=2s&parseTime=true
    Dsn: root:yX0jPAhO0I4s2zlA@tcp(47.244.34.27:3306)/hilo?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


Auth:
  ImeiTotal: 3
  ImeiOauth: 3
  AccountIp: 3
  AccountIpDuration: 3
  Jwt:
    Expire: 24h
    Secret: qwe123
    Issuer: hilo.service.user

TencentYun:
  TencentYunAppId: 1233
  TencentYunKey: string

# 日志
Log:
  Color: true
  Level: DEBUG