-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathlive777.toml
66 lines (57 loc) · 1.52 KB
/
live777.toml
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
[http]
# Http Server Listen Address
# listen = "[::]:7777"
# Cross-Origin Resource Sharing (CORS)
# reference: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
# cors = false
[[ice_servers]]
urls = [
"stun:stun.22333.fun",
"stun:cn.22333.fun",
"stun:stun.l.google.com:19302",
]
# [[ice_servers]]
# urls = [ "turn:turn.22333.fun", "turn:cn.22333.fun" ]
# username = "live777"
# credential = "live777"
# credential_type = "password"
# WHIP/WHEP auth token
# Headers["Authorization"] = "Bearer {token}"
# [auth]
# JSON WEB TOKEN secret
# secret = "<jwt_secret>"
# static JWT token, superadmin, debuggger can use this token
# tokens = ["live777"]
[log]
# Env: `LOG_LEVEL`
# Default: info
# Values: off, error, warn, info, debug, trace
# level = "warn"
[strategy]
# If not set, use default u16::MAX
# Default: 65535
# each_stream_max_sub = 1
# If cascade push is beginning, close all subscriber
# cascade_push_close_sub = false
# WHIP auto a stream
# auto_create_whip = true
# WHEP auto a stream
# auto_create_whep = true
#
# Default: -1
# -1: disable
# 0: immediately destroy
# >= 1: delay millisecond
# Auto a destroy a stream at no pub
# auto_delete_whip = 60000
# Auto a destroy a stream at no sub
# auto_delete_whep = 60000
# Experimental Feature
# [webhook]
# webhooks = ["http://127.0.0.1:8080/webhook?token="]
# Default enabled `--features=net4mqtt`
# [net4mqtt]
# Global unique alias
# alias = "liveion-0"
# `client_id={alias}` use alias as MQTT `client_id`
# mqtt_url = "mqtt://localhost:1883/net4mqtt?client_id={alias}"