-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.schema.json
More file actions
115 lines (115 loc) · 4.39 KB
/
settings.schema.json
File metadata and controls
115 lines (115 loc) · 4.39 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
{
"$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" }
}
},
"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。"
}
}
}
}
}
}
}