视频保存

This commit is contained in:
duoaohui
2026-05-19 13:51:34 +08:00
parent 326675a68d
commit 163b541214
6 changed files with 36 additions and 13 deletions

View File

@@ -86,7 +86,8 @@ llm_source:
meeting:
host_grace_seconds: 120 # 主持人掉线宽限期(秒),期间保留 host 身份
empty_room_ttl_seconds: 300 # 空房自动销毁 TTL期间有人加入可复活
cleanup_interval_seconds: 30 # 兜底扫描周期(秒),定时任务检查过期 grace/empty_ttl key
cleanup_interval_seconds: 60 # 兜底扫描周期(秒),定时任务检查过期 grace/empty_ttl key
stale_room_hours: 4 # 活跃超过此小时且无活跃成员视为 stale强制结束
# webhook 共享密钥:必须与 go-service 端 INTERNAL_WEBHOOK_SECRET 一致,否则 go-service 直接 403
INTERNAL_WEBHOOK_SECRET: internal-webhook-12xqs
# media-server 失败回调共享密钥:必须与 media-server 端 INTERNAL_WEBHOOK_SECRET 环境变量一致
# 留空时 /internal/meeting/recordings/failure 全部 403默认安全
internal_webhook_secret: internal-webhook-12xqs

View File

@@ -79,3 +79,6 @@ meeting:
empty_room_ttl_seconds: 300
cleanup_interval_seconds: 30
stale_room_hours: 4
# media-server 失败回调共享密钥:必须与 docker-compose 中 media-server 服务的 INTERNAL_WEBHOOK_SECRET 一致
# 生产部署请通过环境变量 ECHOCHAT_MEETING_INTERNAL_WEBHOOK_SECRET 覆盖viper.AutomaticEnv 已开启)
internal_webhook_secret: internal-webhook-12xqs

View File

@@ -73,10 +73,13 @@ func (l *LLMSourceConfig) DSN() string {
// MeetingConfig 会议模块生命周期参数Phase 2e-2 Task 8
// 所有字段均允许通过环境变量 ECHOCHAT_MEETING_* 覆盖,便于 E2E 测试以短时长加速场景触发
type MeetingConfig struct {
HostGraceSeconds int `mapstructure:"host_grace_seconds"` // host 掉线宽限期秒数,默认 120
EmptyRoomTTLSeconds int `mapstructure:"empty_room_ttl_seconds"` // 空房自动销毁 TTL 秒数,默认 300
CleanupIntervalSeconds int `mapstructure:"cleanup_interval_seconds"` // 兜底扫描周期秒数,默认 30
StaleRoomHours int `mapstructure:"stale_room_hours"` // 活跃超过此小时且无成员视为 stale默认 4
HostGraceSeconds int `mapstructure:"host_grace_seconds"` // host 掉线宽限期秒数,默认 120
EmptyRoomTTLSeconds int `mapstructure:"empty_room_ttl_seconds"` // 空房自动销毁 TTL 秒数,默认 300
CleanupIntervalSeconds int `mapstructure:"cleanup_interval_seconds"` // 兜底扫描周期秒数,默认 30
// Phase Bmedia-server 失败回调 webhook 共享密钥,必须与 media-server 端 INTERNAL_WEBHOOK_SECRET 一致
// 留空时 /internal/meeting/recordings/failure 全部直接 403默认安全
InternalWebhookSecret string `mapstructure:"internal_webhook_secret"`
StaleRoomHours int `mapstructure:"stale_room_hours"` // 活跃超过此小时且无成员视为 stale默认 4
}
// MediaServerConfig Node media-server 接入配置Phase 2e-2 Task 7