2025-12-05 14:40:33 +08:00
|
|
|
|
server:
|
2025-12-09 13:32:43 +08:00
|
|
|
|
address : ":3001"
|
2025-12-09 16:10:45 +08:00
|
|
|
|
name: "cid"
|
2026-03-23 14:08:11 +08:00
|
|
|
|
workerId: 1
|
|
|
|
|
|
logPath: "resource/log/server"
|
|
|
|
|
|
logStdout: true
|
|
|
|
|
|
errorStack: true
|
2025-12-05 14:40:33 +08:00
|
|
|
|
rate:
|
|
|
|
|
|
limit: 200
|
|
|
|
|
|
burst: 300
|
2026-03-23 14:08:11 +08:00
|
|
|
|
|
|
|
|
|
|
# Database.
|
|
|
|
|
|
database:
|
|
|
|
|
|
default:
|
|
|
|
|
|
- type: "pgsql"
|
2026-05-15 10:28:17 +08:00
|
|
|
|
host: "116.204.74.41"
|
|
|
|
|
|
port: "15432"
|
2026-03-23 14:08:11 +08:00
|
|
|
|
user: "postgres"
|
2026-05-15 10:28:17 +08:00
|
|
|
|
pass: "Bjang09@686^*^"
|
2026-03-23 14:08:11 +08:00
|
|
|
|
name: "cid"
|
|
|
|
|
|
role: "master"
|
|
|
|
|
|
maxIdle: "5"
|
|
|
|
|
|
maxOpen: "20"
|
|
|
|
|
|
maxLifetime: "60s"
|
|
|
|
|
|
charset: "utf8mb4"
|
|
|
|
|
|
debug: true
|
|
|
|
|
|
dryRun: false
|
|
|
|
|
|
createdAt: "created_at"
|
|
|
|
|
|
updatedAt: "updated_at"
|
|
|
|
|
|
deletedAt: "deleted_at"
|
|
|
|
|
|
timeMaintainDisabled: false
|
2026-05-15 10:28:17 +08:00
|
|
|
|
# data-engine 数据库配置(用于存放 tencent_image, tencent_video 等送检表)
|
|
|
|
|
|
dataEngine:
|
|
|
|
|
|
- type: "pgsql"
|
|
|
|
|
|
host: "116.204.74.41"
|
|
|
|
|
|
port: "15432"
|
|
|
|
|
|
user: "postgres"
|
|
|
|
|
|
pass: "Bjang09@686^*^"
|
|
|
|
|
|
name: "dataengine"
|
|
|
|
|
|
role: "master"
|
|
|
|
|
|
maxIdle: "5"
|
|
|
|
|
|
maxOpen: "20"
|
|
|
|
|
|
maxLifetime: "60s"
|
|
|
|
|
|
charset: "utf8mb4"
|
|
|
|
|
|
debug: true
|
|
|
|
|
|
dryRun: false
|
|
|
|
|
|
createdAt: "created_at"
|
|
|
|
|
|
updatedAt: "updated_at"
|
|
|
|
|
|
deletedAt: "deleted_at"
|
|
|
|
|
|
timeMaintainDisabled: false
|
2026-03-23 14:08:11 +08:00
|
|
|
|
|
2025-12-05 14:40:33 +08:00
|
|
|
|
redis:
|
|
|
|
|
|
# 集群模式配置方法
|
|
|
|
|
|
default:
|
2026-01-31 14:24:27 +08:00
|
|
|
|
address: 116.204.74.41:6379
|
2025-12-05 14:40:33 +08:00
|
|
|
|
db: 0
|
|
|
|
|
|
idleTimeout: "60s" #连接最大空闲时间,使用时间字符串例如30s/1m/1d
|
|
|
|
|
|
maxConnLifetime: "90s" #连接最长存活时间,使用时间字符串例如30s/1m/1d
|
|
|
|
|
|
waitTimeout: "60s" #等待连接池连接的超时时间,使用时间字符串例如30s/1m/1d
|
|
|
|
|
|
dialTimeout: "30s" #TCP连接的超时时间,使用时间字符串例如30s/1m/1d
|
|
|
|
|
|
readTimeout: "30s" #TCP的Read操作超时时间,使用时间字符串例如30s/1m/1d
|
|
|
|
|
|
writeTimeout: "30s" #TCP的Write操作超时时间,使用时间字符串例如30s/1m/1d
|
|
|
|
|
|
maxActive: 100
|
|
|
|
|
|
consul:
|
2026-01-31 14:24:27 +08:00
|
|
|
|
address: 116.204.74.41:8500
|
2025-12-05 14:40:33 +08:00
|
|
|
|
# pass: jiahui8888
|
|
|
|
|
|
jaeger: #链路追踪
|
2026-05-08 09:33:40 +08:00
|
|
|
|
addr: 116.204.74.41:4318
|
|
|
|
|
|
|
|
|
|
|
|
yidun:
|
2026-05-15 10:28:17 +08:00
|
|
|
|
# 回调模式开关: true=使用回调模式(需要公网地址), false=使用轮询模式
|
|
|
|
|
|
callback_mode: false
|
|
|
|
|
|
|
|
|
|
|
|
# 视频检测配置
|
2026-05-08 09:33:40 +08:00
|
|
|
|
video:
|
2026-05-15 10:28:17 +08:00
|
|
|
|
business_id: "YD00256761935486"
|
2026-05-08 09:33:40 +08:00
|
|
|
|
secret_id: "f58a38341ca6227014df7c3bf0e6f16f"
|
|
|
|
|
|
secret_key: "526aa631ba5d518aedeb70b5a3b67371"
|
|
|
|
|
|
region: "cn-hangzhou"
|
|
|
|
|
|
protocol: "https"
|
|
|
|
|
|
max_retry_count: 3
|
2026-05-15 10:28:17 +08:00
|
|
|
|
# 易盾回调地址(用于接收检测结果推送)
|
|
|
|
|
|
# 替换为实际可访问的地址
|
|
|
|
|
|
callback_url: "http://your-domain.com:3001/yidun/callback/receiveVideo"
|
2026-05-08 09:33:40 +08:00
|
|
|
|
|
|
|
|
|
|
# 图片检测配置
|
|
|
|
|
|
image:
|
|
|
|
|
|
business_id: "20acccc525cbc5cb6bed3d8f6f6b2f77"
|
|
|
|
|
|
secret_id: "9a82f90bfec61eb40d1c95605b894817"
|
|
|
|
|
|
secret_key: "f73a78954417a3713c36ec2d14eb2b5f"
|
|
|
|
|
|
region: "cn-hangzhou"
|
|
|
|
|
|
protocol: "https"
|
|
|
|
|
|
max_retry_count: 3
|
2026-05-15 10:28:17 +08:00
|
|
|
|
# 易盾回调地址(用于接收检测结果推送)
|
|
|
|
|
|
# 替换为实际可访问的地址
|
|
|
|
|
|
callback_url: "http://your-domain.com:3001/yidun/callback/receiveImage"
|
2026-05-08 09:33:40 +08:00
|
|
|
|
|
|
|
|
|
|
# 文本检测配置(如需要请补充)
|
|
|
|
|
|
text:
|
|
|
|
|
|
business_id: "YOUR_TEXT_BUSINESS_ID"
|
|
|
|
|
|
secret_id: "YOUR_TEXT_SECRET_ID"
|
|
|
|
|
|
secret_key: "YOUR_TEXT_SECRET_KEY"
|
|
|
|
|
|
region: "cn-hangzhou"
|
|
|
|
|
|
protocol: "https"
|
2026-05-15 10:28:17 +08:00
|
|
|
|
max_retry_count: 3
|
|
|
|
|
|
# 易盾回调地址(用于接收检测结果推送)
|
|
|
|
|
|
# 替换为实际可访问的地址
|
|
|
|
|
|
callback_url: "http://your-domain.com:3001/yidun/callback/receiveText"
|
|
|
|
|
|
|
|
|
|
|
|
# 内容送检定时任务配置
|
|
|
|
|
|
content_check:
|
|
|
|
|
|
# 是否启动定时送检任务(true=启动定时任务自动送检,false=不启动,仅通过API手动送检)
|
|
|
|
|
|
scheduler_enabled: false
|
|
|
|
|
|
# 每批处理数量
|
|
|
|
|
|
batch_size: 10
|
|
|
|
|
|
# 是否启用图片检测
|
|
|
|
|
|
image_enabled: false
|
|
|
|
|
|
# 是否启用视频检测
|
|
|
|
|
|
video_enabled: false
|
|
|
|
|
|
# 定时任务执行间隔(秒)
|
|
|
|
|
|
interval_seconds: 30
|