Skip to content

Liveman (Live777 Manager)

Live777 集群管理器.

如果我有很多服务器(live777 核心集群),我需要统一管理它们。

认证

关闭认证

参照: live777#认证/关闭认证

Bearer token

参照: live777#认证/Bearer token

JWT(JSON Web Token)

参照: live777#认证/JWT(JSON Web Token)

Username/password

登陆 Dashboard,权限和 Bearer token 一样。主要用于管理集群

toml
[auth]
Admin Dashboard Accounts

[[auth.accounts]]
username = "live777"
password = "live777"

[[auth.accounts]]
username = "live777-2"
password = "live777-2"

使用外部的 IceServers

使用 WHIP/WHEP 时会合并全部的 iceServers

注意:

这个功能仅限于 WHIP/WHEP 客户端

因为 WHIP/WHEP 服务端不支持 trickle ICE,如果使用很多 ICE 会拖慢启动速度

如果不需要上游提供 ice_servers,可以使用 override_upstream_ice_servers = true 来清除

toml
[extra_ice]
# When WHIP/WHEP use liveman proxy
# liveman override upstream liveion http header link ice_servers
override_upstream_ice_servers = false

Static

live777 config [ice_servers] 一样

toml
[[extra_ice.ice_servers]]
urls = [
    "stun:stun.22333.fun",
    "stun:cn.22333.fun",
    "stun:stun.l.google.com:19302",
]

[[extra_ice.ice_servers]]
urls = [ "turn:turn.22333.fun", "turn:cn.22333.fun" ]
username = "live777"
credential = "live777"

Coturn

在产品环境中,为确保安全,通常需要对每一个链接单独分配一个独立的 username / password

注意:

Coturn 的 --use-auth-secret--lt-cred-mech 是冲突的

--lt-cred-mech 通常用于开发和测试环境。(WebRTC 不支持 turn 的 noauth 模式)

toml
[extra_ice.coturn]
# Coturn must use: --use-auth-secret
# The secret is: --static-auth-secret=live777
secret = "live777"
urls = [
    "stun:coturn.22333.fun:3478",
    "turn:coturn.22333.fun:3478?transport=udp",
    "turn:coturn.22333.fun:3478?transport=tcp",
]
ttl = 3600

Cloudflare

使用 Cloudflare 提供的 Turn 服务

toml
[extra_ice.cloudflare]
# https://developers.cloudflare.com/realtime/turn/generate-credentials/
key_id = ""
api_token = ""
ttl = 3600

集群模式

集群模式需要 Liveman,我们也可以通过 net4mqtt 来扩展网络

liveman-cluster

边缘集群

我们支持边缘端和云端混合集群

live777-verge

Released under the MPL-2.0 License.