Files

97 lines
3.4 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
server:
address : ":3010"
name: "media"
workerId: 1
logPath: "resource/log/server"
logStdout: true
errorStack: true
# 开启请求访问日志
accessLogEnabled: true
# 上传文件大小限制(视频文件通常较大)
clientMaxBodySize: "200MB"
rate:
limit: 200
burst: 300
# 数据库配置(PostgreSQL
database:
default:
type: "pgsql"
host: "192.168.0.83"
port: "15432"
user: "sql9f15b63fd203b36e"
pass: "1ec94b1acdaf57b66030242d418fad5a"
name: "media"
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
redis:
# 集群模式配置方法
default:
address: 192.168.0.83:6379
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:
address: 192.168.0.83:8500
jaeger:
addr: 192.168.0.83:4318
# FFmpeg 配置(视频音频提取)
ffmpeg:
# ffmpeg 可执行文件路径,留空则从 PATH 查找
path: ""
# 临时文件目录(上传的视频和提取的音频)
temp_dir: "resource/temp"
# 视频分析配置
analysis:
# 视频永久存储目录(按 taskId 子目录组织,不删除)
video_dir: "resource/videos"
# Caption 接口地址
caption_url: "http://192.168.3.49:8900/caption"
# Caption 接口超时时间(单个视频分析可能耗时较长)
caption_timeout: "30m"
# Max new tokens(传递给 Caption 接口的参数)
max_new_tokens: "2048"
# 是否启用 mock 模式(true: 返回模拟数据,false: 调用真实 caption 接口)
mock_caption: true
# OSS/MinIO 文件上传配置
filePrefix: "http://cdn.redpowerfuture.com"
# 视频拼接+混音配置
merge:
# 并发数,控制同时处理的拼接混音任务数量(默认 1,串行)
concurrency: 1
# HyperFrames 字幕叠加配置
hyperframes:
# HyperFrames 渲染超时时间(分钟),复杂项目可能需要更长时间
render_timeout: 30
# 是否启用 headless 模式
headless: true
# 浏览器可执行文件路径(非空且路径存在时设置 HYPERFRAMES_BROWSER_PATH,覆盖 HyperFrames 默认解析)。
# Docker/Alpine 必须用系统 chromiumAlpine 是 musl libc,而 hyperframes 默认下载的
# 官方 chrome-headless-shell 是 glibc 构建,musl 下无法加载(渲染报 spawn ENOENT / signal: killed)。
# 指向普通 Chromium 时 HyperFrames 会自动回退到 screenshot 捕获模式(比 headless-shell 略慢,功能正常)。
# Windows 本地无需改此值:该路径不存在时服务层会自动探测本机 Chrome/Chromium(含 %LOCALAPPDATA% 等标准路径),
# 避免 HyperFrames 回退到从 Google CDN 慢速下载;也可用系统环境变量 HYPERFRAMES_BROWSER_PATH 显式指定。
browser_path: "/usr/bin/chromium-browser"