forked from voc/srtrelay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.toml.example
75 lines (60 loc) · 2.63 KB
/
config.toml.example
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
[app]
# Relay listen address
# You can add multiple addresses to listen on. If you use a domain name, it will be resolved to its IP-Addresses.
# The first address listed here will be used to generate the listen-URL you can request by the API.
# However, you can use whatever address you specified here to listen to a stream. Or just reorder the list.
# listen on all addresses
#addresses = [":1337"]
# listen on localhost
addresses = ["localhost:1337"]
# Set public address for use in API responses
# by default local FQDN + listen address port is used
#publicAddress = "hostname:1337"
# SRT protocol latency in ms
# This should be a multiple of your expected RTT because SRT needs some time
# to send and receive acknowledgements and retransmits to be effective.
# The recommended latency is about ~2.5x RTT.
#latency = 200
# Relay buffer size in bytes, 384000 -> 1 second @ 3Mbits
# This determines the maximum delay tolerance for connected clients.
# Clients which are more than buffersize behind the live edge are disconnected.
#buffersize = 384000
# SRT protocol `lossmaxttl` value. Default 0 disables the mechanism. This is an advanced configuration, see
# http://underpop.online.fr/f/ffmpeg/help/haivision-secure-reliable-transport-protocol.htm.gz
# for more info
#lossMaxTTL = 0
# Experimental: synchronize MPEG-TS clients to a GOP start
# This should not increase playback delay, just make sure the client always
# starts with a clean packet stream.
# Currently just implemented for H.264
#syncClients = false
# Set packet size in Bytes for SRT socket, 1316 Bytes is generally used for MPEG-TS the maximum is 1456 Bytes
#packetSize = 1316
# Max number of pending clients in the accept queue
#listenBacklog = 10
[api]
# Set to false to disable the API endpoint
#enabled = true
# API listening address
#address = ":8080"
[auth]
# Choose between available auth types (static and http)
# for further config options see below
#type = "static"
[auth.static]
# Streams are authenticated using a static list of allowed streamids
# Each pattern is matched to the client streamid
# in the form of <mode>/<stream-name>/<password>
# Allows using * as wildcard (will match across slashes)
#allow = ["*", "publish/foo/bar", "play/*"]
[auth.http]
# Streams are authenticated using HTTP POST calls against this URL
# Should be compatible to nginx-rtmp on_publish/on_subscribe directives
#url = "http://localhost:8080/publish"
# auth timeout duration
#timeout = "1s"
# Value of the 'app' form-field to send in the POST request
# Needed for compatibility with the RTMP-application field
#application = "stream"
# Key of the form-field to send the stream password in
#passwordParam = "auth"