amazon-ec2 - 如何编辑 /etc/jitsi/jibri/jibri.conf 以在 jibri 上录制 jitsi,因为 /etc/jitsi/jibri/config.json 不再存在
问题描述
我正在ec2 aws实例上开发一个自托管jitsi,安装成功完成,现在我想记录一下,在配置jibri时我注意到/etc/jitsi/jibri/config.json丢失了,研究了一下有关文档的更多信息,发现 jibri 进行了一些更改,现在要编辑的文件是 /etc/jitsi/jibri/jibri.conf ,但对于我来说 jibri.conf 是空的,尝试复制/粘贴在此处找到的一些代码https ://docs.easyjitsi.com/docs/confignewjibri/,但它仍然无法记录。所以问题是,我的 jibri.conf 是空的还是应该是这样的,以及如何编辑它以便 jitsi 找到它?先感谢您
解决方案
jibri.conf
jibri {
// A unique identifier for this Jibri
// TODO: eventually this will be required with no default
id = ""
// Whether or not Jibri should return to idle state after handling
// (successfully or unsuccessfully) a request. A value of 'true'
// here means that a Jibri will NOT return back to the IDLE state
// and will need to be restarted in order to be used again.
single-use-mode = false
api {
http {
external-api-port = 2222
internal-api-port = 3333
}
xmpp {
// See example_xmpp_envs.conf for an example of what is expected here
environments = [
{
name = "prod environment"
xmpp-server-hosts = ["your.domain.com"]
xmpp-domain = "your.domain.com"
control-muc {
domain = "internal.auth.your.domain.com"
room-name = "JibriBrewery"
nickname = "jibri-nickname"
}
control-login {
domain = "auth.your.domain.com"
username = "jibri"
password = "JPwd"
}
call-login {
domain = "recorder.your.domain.com"
username = "recorder"
password = "RPwd"
}
strip-from-room-domain = "conference."
usage-timeout = 0
trust-all-xmpp-certs = true
}]
}
}
recording {
recordings-directory = "/srv/recordings"
# TODO: make this an optional param and remove the default
finalize-script = "/path/to/finalize_recording.sh"
}
streaming {
// A list of regex patterns for allowed RTMP URLs. The RTMP URL used
// when starting a stream must match at least one of the patterns in
// this list.
rtmp-allow-list = [
// By default, all services are allowed
".*"
]
}
chrome {
// The flags which will be passed to chromium when launching
flags = [
"--use-fake-ui-for-media-stream",
"--start-maximized",
"--kiosk",
"--enabled",
"--disable-infobars",
"--autoplay-policy=no-user-gesture-required"
]
}
stats {
enable-stats-d = true
}
webhook {
// A list of subscribers interested in receiving webhook events
subscribers = []
}
jwt-info {
// The path to a .pem file which will be used to sign JWT tokens used in webhook
// requests. If not set, no JWT will be added to webhook requests.
# signing-key-path = "/path/to/key.pem"
// The kid to use as part of the JWT
# kid = "key-id"
// The issuer of the JWT
# issuer = "issuer"
// The audience of the JWT
# audience = "audience"
// The TTL of each generated JWT. Can't be less than 10 minutes.
# ttl = 1 hour
}
call-status-checks {
// If all clients have their audio and video muted and if Jibri does not
// detect any data stream (audio or video) coming in, it will stop
// recording after NO_MEDIA_TIMEOUT expires.
no-media-timeout = 30 seconds
// If all clients have their audio and video muted, Jibri consideres this
// as an empty call and stops the recording after ALL_MUTED_TIMEOUT expires.
all-muted-timeout = 10 minutes
// When detecting if a call is empty, Jibri takes into consideration for how
// long the call has been empty already. If it has been empty for more than
// DEFAULT_CALL_EMPTY_TIMEOUT, it will consider it empty and stop the recording.
default-call-empty-timeout = 30 seconds
}
}
推荐阅读
- javascript - 导出为 PNG 或 JPEG 时删除画布周围的灰色边框
- json - 将数组和字典加入 jq 中的 TSV
- python - 根据掩码串联拆分数据
- azure - 如何修复 azure 函数中的连接 EADDRINUSE 错误
- php - mysqli_fetchall($result, MYSQLI_ASSOC) 返回空值的关联数组
- reactjs - 无法读取以 React 状态存储的 json 对象
- python-3.x - 在 Plotly 中向甘特图添加自定义标记
- java - 每次字符串与我的字符串数组中的元素匹配时尝试向变量添加计数
- reactjs - 不支持在 vite-cli 中添加本地包的“npm 链接”
- javascript - 将值分配给稍后将在不同脚本调用中使用的变量的正确方法是什么?