-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
57 lines (51 loc) · 1.16 KB
/
config.yaml
File metadata and controls
57 lines (51 loc) · 1.16 KB
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
# 数据库同步系统配置文件
# 数据库连接配置
databases:
mysql:
host: db_mysql
port: 3306
username: root
password: rootpassword
database: my_db
postgresql:
host: db_pg
port: 5432
username: postgres
password: postgrespassword
database: my_db
sqlite:
host: localhost
port: null
username: null
password: null
database: /app/local.db
# 邮件服务配置
email:
smtp_server: smtp.qq.com
smtp_port: 465
sender_email: 3156391389@qq.com
sender_password: "" # 从环境变量SENDER_PASSWORD读取
admin_emails:
- wodenjay@gmail.com
# 同步配置
sync:
polling_interval: 3 # 实时同步轮询间隔(秒)
batch_size: 1000 # 批量同步大小
max_retry: 3 # 最大重试次数
timeout: 30 # 同步超时时间(秒)
# 安全配置
security:
session_secret: "xY7!kP@3qR$9mZ#2sV&5tB*8nL^4cF(1gH)6jD"
token_expiry_hours: 24 # 邮件访问令牌有效期(小时)
# 日志配置
logging:
level: INFO
file: /app/logs/system.log
max_size: 100MB
backup_count: 5
# 开发配置
development:
debug: true
reload: true
host: 0.0.0.0
port: 8080