This commit is contained in:
toom1996
2026-08-10 20:47:34 +08:00
parent 4c71ffde21
commit cab1023ba1
9 changed files with 621 additions and 0 deletions

12
config.yml Normal file
View File

@ -0,0 +1,12 @@
# 爬虫框架通用配置
app:
max_co: 3 # 默认最大并发协程数
debug: true # 默认为 true开发调试生产环境中设为 false
# MySQL 数据库及连接池配置
database:
dsn: "root:123456@tcp(127.0.0.1:3306)/database?charset=utf8mb4&parseTime=True&loc=Local"
max_open_conns: 50 # 连接池最大打开连接数
max_idle_conns: 10 # 连接池最大空闲连接数
conn_max_lifetime: 30 # 连接可复用的最长时间(分钟)
conn_max_idle_time: 10 # 连接空闲最大存活时间(分钟)