20 lines
633 B
YAML
20 lines
633 B
YAML
|
# 可复用变量 dsn
|
||
|
var:
|
||
|
db:
|
||
|
mysql: &mysql mysql:mysql@tcp(mysql:3306)/db?parseTime=true
|
||
|
ch: &ch tcp://clickhouse:9000?database=db&username=&password=&compress=1&timezone=Asia/Shanghai
|
||
|
redis: &redis redis://redis:6379/14
|
||
|
|
||
|
log:
|
||
|
path: ./logs/
|
||
|
level: debug
|
||
|
max_age: 5 # 保留旧文件天数
|
||
|
max_size: 500 # mb
|
||
|
max_backups: 3 # 保留每天旧文件个数
|
||
|
compress: true # 是否归档旧文件
|
||
|
local_time: true # 是否使用本地时间
|
||
|
log_in_console: true # 是否打印控制台日志
|
||
|
|
||
|
server:
|
||
|
address: ":20028"
|
||
|
pprof: f
|