FrontInterfaceCenter/configs/config.yaml

28 lines
1.1 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server:
http:
addr: 0.0.0.0:8090
timeout: 30s
isOpenSwagger: true #是否开启api文档仅用于开发、测试线上禁止启用
isResponseReqHeaders: true #是否开启响应请求头,仅用于开发调试,线上禁止启用
data:
db:
driver: mysql
source: root:lansexiongdi6,@tcp(47.97.27.195:3306)/merketing?parseTime=True&loc=Local
maxIdle: 5 #最大的空闲连接数
maxOpen: 20 #最大连接数0表示不受限制
maxLifetime: 5s #连接复用的最大生命周期
redis: #没有则注释此属性
addr: 47.97.27.195:6379
password: lansexiongdi@666
readTimeout: 3s
writeTimeout: 3s
poolSize: 5 #连接池大小不配置或配置为0表示不启用连接池
minIdleConns: 2 #最小空闲连接数
connMaxIdleTime: 30s #每个连接最大空闲时间,如果超过了这个时间会被关闭
db: 1
#配置日志
logs:
business: business.log #业务日志路径:如果不写日志,则不配置或配置为空
access: access.log #访问日志路径:如果不写日志,则不配置或配置为空