This repository has been archived by the owner on Aug 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.toml
276 lines (218 loc) · 6.12 KB
/
config.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
[server.client.http]
# Client API HTTP server's public URL.
# It's assumed that HTTP server can be reached via this URL externally.
#
# Env var: MEDEA_SERVER__CLIENT__HTTP__PUBLIC_URL
# Default:
# public_url = "ws://127.0.0.1:8080/ws"
# IP address to bind Client API HTTP server to.
#
# Env var: MEDEA_SERVER__CLIENT__HTTP__BIND_IP
# Default:
# bind_ip = "0.0.0.0"
# Port to bind Client API HTTP server to.
#
# Env var: MEDEA_SERVER__CLIENT__HTTP__BIND_PORT
# Default:
# bind_port = 8080
[server.control.grpc]
# IP address to bind Control API gRPC server to.
#
# Env var: MEDEA_SERVER__CONTROL__GRPC__BIND_IP
# Default:
# bind_ip = "0.0.0.0"
# Port to bind Control API gRPC server to.
#
# Env var: MEDEA_SERVER__CONTROL__GRPC__BIND_PORT
# Default:
# bind_port = 6565
[control]
# Path to directory with static Сontrol API specs.
#
# Env var: MEDEA_CONTROL__STATIC_SPECS_DIR
# Default:
# static_specs_dir = "specs/"
[rpc]
# Duration, after which remote RPC client will be considered idle if no
# heartbeat messages received.
#
# It applies to all related pipelines as default value, but can be overridden
# for each specific case via Control API.
#
# Env var: MEDEA_RPC__IDLE_TIMEOUT
# Default:
# idle_timeout = "10s"
# Duration, after which the server deletes client session if remote RPC client
# does not reconnect after it is idle.
#
# It applies to all related pipelines as default value, but can be overridden
# for each specific case via Control API.
#
# Env var: MEDEA_RPC__RECONNECT_TIMEOUT
# Default:
# reconnect_timeout = "10s"
# Interval between pings that server sends to clients.
#
# It applies to all related pipelines as default value, but can be overridden
# for each specific case via Control API.
#
# Env var: MEDEA_RPC__PING_INTERVAL
# Default:
# ping_interval = "3s"
[ice]
# Default kind of ICE servers to be used for WebRTC.
#
# Possible kinds:
# - "coturn": Medea uses a managed Coturn to dynamically create and cleanup its
# credentials, kill client connections via its Admin CLI, gather its
# allocation traffic information, and provides clients with only
# this Coturn server for ICE.
# See [ice.coturn] section for configuring managed Coturn.
# - "static": Medea provides clients a static list of unmanaged STUN/TURN
# servers.
# See [ice.static] section for specifying them.
#
# Env var: MEDEA_ICE__DEFAULT
# Default:
# default = "coturn"
[ice.coturn]
# Host of Coturn server.
#
# Env var: MEDEA_ICE__COTURN__HOST
# Default:
# host = "localhost"
# TURN port of Coturn server.
#
# Env var: MEDEA_ICE__COTURN__PORT
# Default:
# port = 3478
# Name of static user to authenticate on Coturn server as.
#
# Env var: MEDEA_ICE__COTURN__USER
# Default:
# user = "USER"
# Password of static user to authenticate on Coturn server with.
#
# Env var: MEDEA_ICE__COTURN__PASS
# Default:
# pass = "PASS"
[ice.coturn.db.redis]
# Host of Coturn's Redis database server.
#
# Env var: MEDEA_ICE__COTURN__DB__REDIS__HOST
# Default:
# host = "127.0.0.1"
# Port of Coturn's Redis database server for client connections.
#
# Env var: MEDEA_ICE__COTURN__DB__REDIS__PORT
# Default:
# port = 6379
# User to authenticate on Coturn's Redis database server as.
#
# Env var: MEDEA_ICE__COTURN__DB__REDIS__USERNAME
# Default:
# user = ""
# Password to authenticate on Coturn's Redis database server with.
#
# Env var: MEDEA_ICE__COTURN__DB__REDIS__PASS
# Default:
# pass = "turn"
# Number of Coturn's database in Redis.
#
# Env var: MEDEA_ICE__COTURN__DB__REDIS__DB_NUMBER
# Default:
# db_number = 0
# Timeout for establishing connection with Coturn's Redis database.
#
# Env var: MEDEA_ICE__COTURN__DB__REDIS__CONNECT_TIMEOUT
# Default:
# connect_timeout = "5s"
[ice.coturn.cli]
# Host of Coturn's admin interface.
#
# Env var: MEDEA_ICE__COTURN__CLI__HOST
# Default:
# host = "127.0.0.1"
# Port of Coturn's admin interface for Telnet connections.
#
# Env var: MEDEA_ICE__COTURN__CLI__PORT
# Default:
# port = 5766
# Password to authenticate on Coturn's admin interface with.
#
# Env var: MEDEA_ICE__COTURN__CLI__PASS
# Default:
# pass = "turn"
[ice.coturn.cli.pool]
# Maximum pool size of connections to Coturn's admin interface.
#
# Env var: MEDEA_ICE__COTURN__CLI__POOL__MAX_SIZE
# Default:
# max_size = 16
# Waiting timeout for an available connection with Coturn's admin interface.
#
# "0" means no timeout and is not recommended.
#
# Env var: MEDEA_ICE__COTURN__CLI__POOL__WAIT_TIMEOUT
# Default:
# wait_timeout = "2s"
# Timeout for establishing connection with Coturn's admin interface.
#
# "0" means no timeout and is not recommended.
#
# Env var: MEDEA_ICE__COTURN__CLI__POOL__CONNECT_TIMEOUT
# Default:
# connect_timeout = "2s"
# Timeout for recycling established connection with Coturn's admin interface.
#
# "0" means no timeout and is not recommended.
#
# Env var: MEDEA_ICE__COTURN__CLI__POOL__RECYCLE_TIMEOUT
# Default:
# recycle_timeout = "2s"
[ice.static]
# [ice.static.<name>]
# Comma-separated URLs of <name> STUN/TURN server.
#
# Env var: MEDEA_ICE__STATIC__<NAME>__URLS
# No default, must be specified.
# Example:
# urls = "stun:stun.l.google.com:19302,stun:stun1.l.google.com:19302"
# Optional name of user to authenticate on <name> STUN/TURN server as.
#
# Env var: MEDEA_ICE__STATIC__<NAME>__USER
# Default is none.
# Example:
# user = "USER"
# Optional password of user to authenticate on <name> STUN/TURN server with.
#
# Env var: MEDEA_ICE__STATIC__<NAME>__PASS
# Default is none.
# Example:
# pass = "PASS"
[log]
# Maximum allowed level of application log entries.
#
# Env var: MEDEA_LOG__LEVEL
# Possible values:
# "OFF", "CRITICAL", "ERROR", "WARN", "INFO", "DEBUG", "TRACE"
#
# Default:
# level = "INFO"
[shutdown]
# Maximum duration given to shutdown the whole application gracefully.
#
# Env var: MEDEA_SHUTDOWN__TIMEOUT
# Default:
# timeout = "5s"
[media]
# Max duration of media-flow lag, after which `on_stop` callback is fired.
#
# Env var: MEDEA_MEDIA__MAX_LAG
# Default:
# max_lag = "15s"
# Timeout for peer to become active after it has been created.
#
# Env var: MEDEA_MEDIA__INIT_TIMEOUT
# Default:
# init_timeout = "15s"