-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenstream.sample.toml
86 lines (68 loc) · 2.47 KB
/
openstream.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# mongodb related settings
[mongodb]
# string (required)
# must have a defined database in the path and a replicaSet in the query params
# internally openstream uses transactions so replicaSet is required
# env.OPENSTREAM_MONGODB_URL
url="mongodb://localhost:27017/openstream?replicaSet=rs1"
# string (optional)
# storage database
# env.OPENSTREAM_MONGODB_STORAGE_DB_NAME
storage_db_name = "openstream_storage"
# the [stream] server is where end users will connect to listen to the stations
[stream]
# string(SocketAddr)[] (required)
# socket addrs to bind the stream server to
# env.OPENSTREAM_STREAM_ADDRS (comma separated)
addrs = [ "0.0.0.0:10200" ]
# the [source] server is where openstream receives the audio data from streamers, it is Icecast compatible
[source]
# string(SocketAddr)[] (required)
# socket addrs to bind the source receiver server to
# env.OPENSTREAM_SOURCE_ADDRS (comma separated)
addrs = [ "0.0.0.0:10600" ]
# the [api] server is the main interface for users and admins to interact with openstream server
[api]
# string(SocketAddr)[] (required)
# socket addrs to bind the api server to
# env.OPENSTREAM_API_ADDRS (comma separated)
addrs = [ "0.0.0.0:10700" ]
# the [storage] server is the interface to access user's files like stored audio tracks and images
[storage]
# string(SocketAddr)[] (required)
# socket addrs to bind the api server to
# env.OPENSTREAM_STORAGE_ADDRS (comma separated)
addrs = [ "0.0.0.0:10900" ]
# the [assets] server is the interface to the static files server
[static]
# string(SocketAddr)[] (required)
# socket addrs to bind the assets server to
# env.OPENSTREAM_STATIC_ADDRS (comma separated)
addrs = [ "0.0.0.0:11000" ]
# payments server configuration
[payments]
# string(Url) (required)
# base url of the payments server, it could be in another location that is not local and
# could be an http:// or https:// url, should not
# env.OPENSTREAM_PAYMENTS_BASE_URL
base_url = "http://localhost:17100"
# string (required)
# the access token to grant access to the payments server
# it must match the one specified in front_config.payments.access_token
# env.OPENSTREAM_PAYMENTS_ACCESS_TOKEN
access_token = ""
# smtp related settings for mail submission
# smtp server must use StartTLS on the specified port
[smtp]
# string (required)
# env.OPENSTREAM_SMTP_HOSTNAME
hostname = ""
# u16 (required)
# env.OPENSTREAM_SMTP_PORT
port = 587
# string (required)
# env.OPENSTREAM_SMTP_USERNAME
username = ""
# string (required)
# env.OPENSTREAM_SMTP_PASSWORD
password = ""