-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.yaml
67 lines (61 loc) · 1.24 KB
/
config.example.yaml
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
58
59
60
61
62
63
64
65
66
# 日志相关参数配置
logger:
auto-init: true
# 日志的级别
level: info
# 日志文件的输出目录
directory: "./logs"
# 日志开启哪些端
enable:
# 是否开启标准输出
stdout: true
# 是否开启文件输出
file: true
# 爬虫相关配置
crawler:
# 爬虫使用到的代理
proxy:
# 动态代理
dynamic-proxy: "xxx"
# 短效提取型代理
short-proxy: "xxx"
# 爬虫的队列
queue:
# 队列名称
name: "xxxx"
# 消费者参数
consumer:
# 消费者数量
worker-num: 1
# OSS相关参数配置
oss:
# 公网
endpoint: "oss-cn-beijing.aliyuncs.com"
# 认证相关
access-key-id: "xxxx"
access-key-secret: "xxxx"
# COS相关参数配置
cos:
# 公网
endpoint: "https://<bucket>.cos.<region>.myqcloud.com"
# 认证相关
secret-id: "xxxx"
secret-key: "xxxx"
# Redis配置
redis:
auto-init: true
address: "xxx:6379"
passwd: "xxxx:xxxx"
# 数据库配置
database:
mysql:
auto-init: true
dsn: "xxxx:xxxxxxxx@tcp(xxxx)/xxxx?parseTime=true&loc=Local&charset=utf8mb4"
# 使用到的驱动都有哪些
driver:
sqlx: true
gorm: true
connection:
max-idle: 10
max-open: 100
max-lifetime: 1000_000