# 服务配置 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