-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.schema.json
More file actions
130 lines (130 loc) · 5.84 KB
/
Copy pathsettings.schema.json
File metadata and controls
130 lines (130 loc) · 5.84 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "StreamerHelper Config",
"description": "Application config file: ~/.streamer-helper/config.json",
"type": "object",
"required": ["app", "database", "redis", "s3", "recorder", "poller", "upload"],
"properties": {
"deployment": {
"type": "object",
"properties": {
"runtime": {
"enum": ["docker", "orbstack"],
"description": "部署运行时。未配置时 Linux 默认 docker,Apple Silicon Mac 默认 orbstack。docker 使用 Docker Engine;orbstack 使用 macOS OrbStack。"
}
}
},
"app": {
"type": "object",
"properties": {
"port": { "type": "integer", "default": 7001 },
"keys": { "type": "string", "description": "Session/cookie signing secret" },
"nodeEnv": { "enum": ["development", "production", "test"] },
"timezone": { "type": "string", "default": "Asia/Shanghai", "description": "容器时区(IANA 格式)" }
}
},
"http": {
"type": "object",
"properties": {
"port": { "type": "integer", "default": 7080, "description": "HTTP 宿主机暴露端口" },
"httpsPort": { "type": "integer", "default": 7443, "description": "HTTPS 宿主机暴露端口" }
}
},
"database": {
"type": "object",
"properties": {
"host": { "type": "string", "description": "数据库主机。Docker 部署内置 PostgreSQL 时使用 postgres。" },
"port": { "type": "integer", "description": "数据库内部连接端口。Docker 内置 PostgreSQL 固定为 5432,不随宿主机暴露端口变化。" },
"username": { "type": "string" },
"password": { "type": "string" },
"database": { "type": "string" },
"ssl": { "type": "boolean" }
}
},
"redis": {
"type": "object",
"properties": {
"host": { "type": "string", "description": "Redis 主机。Docker 部署内置 Redis 时使用 redis。" },
"port": { "type": "integer", "description": "Redis 内部连接端口。Docker 内置 Redis 固定为 6379,不随宿主机暴露端口变化。" },
"password": { "type": "string" },
"db": { "type": "integer" }
}
},
"s3": {
"type": "object",
"properties": {
"endpoint": { "type": "string", "description": "内部 S3/MinIO 访问地址(Docker 网络内,用于上传下载;内置 MinIO 默认 http://minio:7090)" },
"publicEndpoint": { "type": "string", "description": "外部 S3/MinIO 访问地址(浏览器可访问,用于生成播放 URL;内置 MinIO 默认 http://localhost:7090)" },
"region": { "type": "string" },
"accessKey": { "type": "string" },
"secretKey": { "type": "string" },
"bucket": { "type": "string" }
}
},
"minio": {
"type": "object",
"properties": {
"apiPort": { "type": "integer", "default": 7090, "description": "MinIO API 宿主机暴露端口" },
"consolePort": { "type": "integer", "default": 7091, "description": "MinIO Console 宿主机暴露端口" }
}
},
"recorder": {
"type": "object",
"properties": {
"segmentDuration": { "type": "integer" },
"cacheMaxSegments": { "type": "integer" },
"heartbeatInterval": { "type": "integer" },
"heartbeatTimeout": { "type": "integer" },
"maxRecordingTime": { "type": "integer" }
}
},
"poller": {
"type": "object",
"properties": {
"checkInterval": { "type": "integer" },
"totalInstances": { "type": "integer" },
"concurrency": { "type": "integer" }
}
},
"upload": {
"type": "object",
"properties": {
"defaultTid": { "type": "integer" },
"defaultTitleTemplate": { "type": "string" }
}
},
"asr": {
"type": "object",
"properties": {
"enabled": { "type": "boolean", "default": true, "description": "是否启用语音识别转写。未配置 API Key 时服务会自动判定为不可用。" },
"provider": { "enum": ["aliyun"], "default": "aliyun", "description": "ASR 服务提供商。当前支持阿里云百炼。" },
"apiKey": { "type": "string", "description": "阿里云百炼 API Key。建议生产环境使用环境变量,不要写入配置文件。" },
"apiKeyEnv": { "type": "string", "default": "DASHSCOPE_API_KEY", "description": "读取 API Key 的环境变量名。" },
"baseUrl": { "type": "string", "default": "https://dashscope.aliyuncs.com/compatible-mode/v1", "description": "阿里云 OpenAI 兼容接口 base URL。" },
"model": { "type": "string", "default": "qwen3-asr-flash", "description": "ASR 模型名称。" },
"language": { "type": "string", "default": "zh-CN", "description": "默认识别语言提示。" },
"chunkSeconds": { "type": "integer", "default": 240, "description": "单次提交的音频切片时长。qwen3-asr-flash 单次限制 5 分钟/10MB,默认保守使用 240 秒。" },
"concurrency": { "type": "integer", "default": 1, "description": "并发转写分片数量。" },
"transcribeRecordings": { "type": "boolean", "default": true, "description": "视频分片上传成功后是否自动创建转写任务。" }
}
},
"platforms": {
"type": "object",
"properties": {
"douyin": {
"type": "object",
"properties": {
"cookie": {
"type": "string",
"description": "抖音网页版 Cookie。服务器访问抖音触发验证码时,可填入已在浏览器通过验证的 live.douyin.com Cookie。"
},
"userAgent": {
"type": "string",
"description": "抖音请求使用的 User-Agent。为空时使用内置桌面 Chrome UA。"
}
}
}
}
}
}
}