forked from innogames/rtcd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.sample.toml
67 lines (63 loc) · 3.01 KB
/
config.sample.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
[api]
# The address and port to which the HTTP (and WebSocket) API server will be listening on.
http.listen_address = ":8045"
# A boolean controlling whether the API should be served on a TLS secure connection.
http.tls.enable = false
# A path to the certificate file used to serve the HTTP API.
http.tls.cert_file = ""
# A path to the certificate key used to serve the HTTP API.
http.tls.cert_key = ""
# A boolean controlling whether clients are allowed to self register.
# If rtcd sits in the internal (private) network this can be safely
# turned on to avoid the extra complexity of setting up credentials.
security.allow_self_registration = false
# A boolean controlling whether a superuser client should be allowed.
# The admin client can be used to generate the aforementioned crendetials.
# Example:
# curl -H 'Authorization: Basic $(echo -n ':admin_secret_key' | base64)' \
# http://localhost:8045/register -d '{"clientID": "clientA", "authKey": "Ey4-H_BJA00_TVByPi8DozE12ekN3S7A"}'
security.enable_admin = false
# A key used to authenticate as the admin client.
security.admin_secret_key = ""
# The expiration, in minutes, of the cached auth session and their tokens.
security.session_cache.expiration_minutes = 1440
[rtc]
# The IP address used to listen for UDP packets.
ice_address_udp = ""
# The UDP port used to route all the media (audio/screen/video tracks).
ice_port_udp = 8443
# An optional hostname used to override the default value. By default, the
# service will try to guess its own public IP through STUN (if configured).
# Depending on the network setup, it may be necessary to set an override.
# This is the host that gets advertised to clients and that will be used to connect them to calls.
ice_host_override = ""
# A list of ICE servers (STUN/TURN) to be used by the service. It supports
# advanced configurations.
# Example
# ice_servers = [{urls = ["stun:localhost:3478"], username = "test", credential= "test"},
# {urls = ["turn:localhost:3478"], username = "username", credential = "password"}]
ice_servers = []
# An optional static secret used to generate short-lived credentials for TURN servers.
turn.static_auth_secret = ""
# The expiration, in minutes, of the short-lived credentials generated for TURN servers.
turn.credentials_expiration_minutes = 1440
[store]
# A path to a directory the service will use to store persistent data such as registered client IDs and hashed credentials.
data_source = "/tmp/rtcd_db"
[logger]
# A boolean controlling whether to log to the console.
enable_console = true
# A boolean controlling whether to use the JSON format for logging to the console.
console_json = false
# The logging level for the console.
console_level = "INFO"
# A boolean controlling whether to log to a file.
enable_file = true
# A boolean controlling whether to use the JSON format for logging to file
file_json = true
# The logging level for the file.
file_level = "DEBUG"
# The path to the log file.
file_location = "rtcd.log"
# A boolean controlling whether to display colors when logging to the console.
enable_color = true