sample-production.engine.ini 10.3 KB
Newer Older
David Trattnig's avatar
David Trattnig committed
1

David Trattnig's avatar
David Trattnig committed
2
###################
3
# Engine Settings #
David Trattnig's avatar
David Trattnig committed
4
5
###################

David Trattnig's avatar
David Trattnig committed
6
7
[station]
station_name="Radio Aura"
8
9
station_logo_url="https://o94.at/themes/custom/radio_orange/logo1.png"
station_logo_size="180px"
David Trattnig's avatar
David Trattnig committed
10
11


David Trattnig's avatar
David Trattnig committed
12
[database]
David Trattnig's avatar
David Trattnig committed
13
db_user="aura"
David Trattnig's avatar
David Trattnig committed
14
db_name="aura_engine"
15
db_pass="---SECRET--PASSWORD---"
David Trattnig's avatar
David Trattnig committed
16
db_host="localhost"
David Trattnig's avatar
David Trattnig committed
17
18
19
db_charset="utf8"


David Trattnig's avatar
David Trattnig committed
20
[monitoring]
21
mail_server="mail.your-radio.org"
David Trattnig's avatar
David Trattnig committed
22
23
mail_server_port="587"
mail_user="aura@subsquare.at"
24
mail_pass="---SECRET--PASSWORD---"
25

26
27
28
29
# Set to "true" if you want to notify programme-coordinators about about fallback situations, otherwise "false"
mail_coordinator_enabled="true"
# If you want to address multiple programme-coordinators separate their emails by space
coordinator_mail="programme-coordinator@your-radio.org"
30
31
# Set to "true" if you want to notify admins about incidents, otherwise "false"
mail_admin_enabled="true"
32
# If you want to address multiple administrators separate their emails by space
33
34
admin_mail="admin@your-radio.org"
# The FROM email address used when sending
David Trattnig's avatar
David Trattnig committed
35
from_mail="monitoring@aura.engine"
36
37
# A subject prefix allows applying filter rules in your mail client
mailsubject_prefix="[AURA Engine]"
38

David Trattnig's avatar
David Trattnig committed
39
# Server where heartbeat info is sent to
40
heartbeat_server = "127.0.0.1"   
David Trattnig's avatar
David Trattnig committed
41
42
43
44
# Some UDP port
heartbeat_port = 43334 
# Seconds how often the vitality of the Engine should be checked (0 = disabled)
heartbeat_frequency = 1
David Trattnig's avatar
David Trattnig committed
45

46
47
logdir="/home/username/code/aura/engine/logs"
# Possible values: debug, info, warning, error, critical
48
49
loglevel="info"

50

51
52
[api]

53
54
## STEERING ##

David Trattnig's avatar
David Trattnig committed
55
# The URL to get the health status 
56
api_steering_status="http://aura.local:8000/api/v1/"
57
# The URL to get the Calendar via Steering
David Trattnig's avatar
David Trattnig committed
58
api_steering_calendar="http://aura.local:8000/api/v1/playout"
59

David Trattnig's avatar
David Trattnig committed
60
61
## TANK ##

62
63
64
65
# The session name which is used to authenticate against Tank
api_tank_session="engine"
# The secret which is used to authenticate against Tank
api_tank_secret="rather-secret"
David Trattnig's avatar
David Trattnig committed
66
# The URL to get the health status 
67
api_tank_status="http://aura.local:8040/healthz/"
David Trattnig's avatar
David Trattnig committed
68
# The URL to get playlist details via Tank
David Trattnig's avatar
David Trattnig committed
69
api_tank_playlist="http://aura.local:8040/api/v1/playlists/${ID}"
David Trattnig's avatar
David Trattnig committed
70

David Trattnig's avatar
David Trattnig committed
71
72
73
## ENGINE-API ##

# Engine ID (1 or 2)
74
api_engine_number=1
David Trattnig's avatar
David Trattnig committed
75
76
# Engine API availability check
api_engine_status="http://localhost:8008/api/v1/ui/"
David Trattnig's avatar
David Trattnig committed
77
# Engine API endpoint to store playlogs
78
api_engine_store_playlog="http://localhost:8008/api/v1/playlog/store"
David Trattnig's avatar
David Trattnig committed
79
# Engine API endpoint to store clock information
80
api_engine_store_clock="http://localhost:8008/api/v1/clock"
David Trattnig's avatar
David Trattnig committed
81
# Engine API endpoint to store health information
82
api_engine_store_health="http://localhost:8008/api/v1/source/health/${ENGINE_NUMBER}"
David Trattnig's avatar
David Trattnig committed
83

David Trattnig's avatar
David Trattnig committed
84

David Trattnig's avatar
David Trattnig committed
85
[scheduling]
86

David Trattnig's avatar
David Trattnig committed
87
# How often should the calendar be fetched in seconds. This determines the time of the last changes applied, before a specific show aired
David Trattnig's avatar
David Trattnig committed
88
fetching_frequency=300
89
90
91
# The scheduling window defines when the entries of each timeslot are queued for play-out. The windows start at (timeslot.start - window_start) seconds
# and ends at (timeslot.end - window.end) seconds. Its also worth noting, that timeslots can only be deleted before the start of the window.                
scheduling_window_start=60
92
scheduling_window_end=60
David Trattnig's avatar
David Trattnig committed
93
# How many seconds before the actual schedule time the entry should be pre-rolled. Note to provide enough timeout for
94
95
96
# contents which take longer to load (big files, bad connectivity to streams etc.). If the planned start time is in
# the past the offset is ignored and the entry is played as soon as possible
preload_offset=15
David Trattnig's avatar
David Trattnig committed
97
98

# Sometimes it might take longer to get a stream connected. Here you can define a viable length.
99
# But note, that this may affect the preloading time (see `preload_offset`), hence affecting the 
David Trattnig's avatar
David Trattnig committed
100
# overall playout, it's delays and possible fallbacks
David Trattnig's avatar
David Trattnig committed
101
102
input_stream_retry_delay=1
input_stream_max_retries=10
103
input_stream_buffer=3.0
David Trattnig's avatar
David Trattnig committed
104

105

David Trattnig's avatar
David Trattnig committed
106
[fading]
107
# Sets the time how long we have to fade in and out, when we select another mixer input values are in seconds
David Trattnig's avatar
David Trattnig committed
108
109
110
111
fade_in_time="0.5"
fade_out_time="2.5"

#######################
112
# Liquidsoap Settings #
David Trattnig's avatar
David Trattnig committed
113
114
115
116
#######################

# all these settings from here to the bottom require a restart of the liquidsoap server

117
[lqs]
David Trattnig's avatar
David Trattnig committed
118
liquidsoap_path="/home/engineuser/.opam/4.08.0/bin/liquidsoap"
119
liquidsoap_working_dir="src/liquidsoap/"
120
liquidsoap_as_root="false"
121
122

# Liquidsoap execution delay in seconds; Crucial to keep things in sync
123
124
lqs_delay_offset=1

David Trattnig's avatar
David Trattnig committed
125
126
[user]
# the user and group under which this software will run
David Trattnig's avatar
David Trattnig committed
127
128
daemongroup="engineuser"
daemonuser="engineuser"
David Trattnig's avatar
David Trattnig committed
129
130

[socket]
131
socketdir="/opt/aura/engine/src/liquidsoap"
David Trattnig's avatar
David Trattnig committed
132

133
[audiosources]
134
audio_source_folder="var/audio/source"
135
audio_source_extension=".flac"
David Trattnig's avatar
David Trattnig committed
136
137

[fallback]
David Trattnig's avatar
David Trattnig committed
138
# track_sensitive => fallback_folder track sensitivity
David Trattnig's avatar
David Trattnig committed
139
140
141
142
143
# max_blank => maximum time of blank from source (defaults to 20., seconds, float)
# min_noise => minimum duration of noise on source to switch back over (defaults to 0, seconds, float)
# threshold => power in dB under which the stream is considered silent (defaults to -40., float)
fallback_max_blank="20."
fallback_min_noise="0."
144
fallback_threshold="-80."
145
# A playlist holding music for Station Fallbacks (optonal)
146
fallback_music_playlist= "/opt/aura/engine/config/playlists/station-fallback-playlist.m3u"
147
148
149
# A folder holding music for Station Fallbacks (optional)
fallback_music_folder="/var/audio/station"
# The time in seconds how often the folder should be re-scanned
David Trattnig's avatar
David Trattnig committed
150
# Do not reload too often when using large folders
151
fallback_music_folder_reload="300"
David Trattnig's avatar
David Trattnig committed
152

David Trattnig's avatar
David Trattnig committed
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172

[soundcard]
# choose your weapon
# if you are starving for pain in the ass choose alsa
# if you don't care about latency choose pulseaudio
# if you want low latency and a bit of experimenting, choose jack
soundsystem="alsa"

# you can define up to 5 inputs and outputs
# it is tested with
#  - ALSA with ONE input and ONE output
#  - pulseaudio with ONE input and ONE output (should work with multiple ins/outs)
#  - jack with multiple inputs and outputs
#
# boundaries:
#  - if you use jack, you have to kill liquidsoap. somehow liquidsoap cannot disconnect from jackd when shutting down
#
# with alsa you have to write the devicenames like hw:0
# with pulse and jack => an non empty value means it is used
# devices with empty string are ignored and not used
David Trattnig's avatar
David Trattnig committed
173
input_device_0=""
David Trattnig's avatar
David Trattnig committed
174
175
176
177
178
input_device_1=""
input_device_2=""
input_device_3=""
input_device_4=""
# same same, but different
David Trattnig's avatar
David Trattnig committed
179
output_device_0="default"
David Trattnig's avatar
David Trattnig committed
180
181
182
183
184
185
186
187
188
output_device_1=""
output_device_2=""
output_device_3=""
output_device_4=""

# if you are using alsa, you most probably have to tweak these values
# out of the box you will hear alot of cracklings and artifacts

# alsa_buffer => int
189
190
#alsa_buffer="8192"
alsa_buffer="16384"
David Trattnig's avatar
David Trattnig committed
191
# alsa_buffer_length => int
David Trattnig's avatar
David Trattnig committed
192
alsa_buffer_length="25"
David Trattnig's avatar
David Trattnig committed
193
# alsa_periods => int
David Trattnig's avatar
David Trattnig committed
194
alsa_periods="0"
David Trattnig's avatar
David Trattnig committed
195
196
197
198
199
200
201
202
203
204
# frame_duration => double
frame_duration=""
# frame_size => int
frame_size=""

#####################
# Recorder Settings #
#####################

# you can define up to 5 recorder types.
205
# flac, mp3, ogg, opus and wav is supported
David Trattnig's avatar
David Trattnig committed
206
207
208
209
210
211

[recording]
# flac example
# enable this recorder. everything else than 'y' is considered as disabled
rec_0="n"
# first set a folder
David Trattnig's avatar
David Trattnig committed
212
rec_0_folder="/var/recordings/flac"
David Trattnig's avatar
David Trattnig committed
213
214
215
216
217
218
219
220
221
# after how many minutes the recording will be cut
rec_0_duration="30"
# file (or encoding-) type
rec_0_encoding="flac"
# bitrate (with encoding types without bitrate like flac or wav it is substituted. 32 => very poor quality. 320 => very high quality)
rec_0_bitrate="128"
# channels: everything else than 2 is considered as mono
rec_0_channels="2"

222
# mp3 example
David Trattnig's avatar
David Trattnig committed
223
rec_1="n"
224
rec_1_folder="/var/audio/rec/mp3"
David Trattnig's avatar
David Trattnig committed
225
rec_1_duration="30"
226
227
rec_1_encoding="mp3"
rec_1_bitrate="320"
David Trattnig's avatar
David Trattnig committed
228
229
230
231
rec_1_channels="2"

# mp3 example
rec_2="n"
232
rec_2_folder="/var/audio/rec/mp3"
David Trattnig's avatar
David Trattnig committed
233
234
rec_2_duration="30"
rec_2_encoding="mp3"
235
rec_2_bitrate="192"
David Trattnig's avatar
David Trattnig committed
236
237
238
239
rec_2_channels="2"

# ogg example
rec_3="n"
David Trattnig's avatar
David Trattnig committed
240
rec_3_folder="/var/recordings/ogg"
David Trattnig's avatar
David Trattnig committed
241
242
243
244
245
246
247
rec_3_duration="30"
rec_3_encoding="ogg"
rec_3_bitrate="320"
rec_3_channels="2"

# opus example
rec_4="n"
David Trattnig's avatar
David Trattnig committed
248
rec_4_folder="/var/recordings/opus"
David Trattnig's avatar
David Trattnig committed
249
250
251
252
253
254
255
rec_4_duration="30"
rec_4_encoding="opus"
rec_4_bitrate="32"
rec_4_channels="2"

# wav example
#rec_4="n"
David Trattnig's avatar
David Trattnig committed
256
#rec_4_folder="/var/recordings/wav"
David Trattnig's avatar
David Trattnig committed
257
258
259
260
261
262
263
264
265
266
#rec_4_duration="30"
#rec_4_filetype="wav"
#rec_4_bitrate="320"
#rec_4_channels="2"

###################
# Stream Settings #
###################

# You can define up to outgoing 5 streams
267
# flac, mp3, ogg and opus is supported
David Trattnig's avatar
David Trattnig committed
268
269
270

[stream]
# defines enabled or not
David Trattnig's avatar
David Trattnig committed
271
stream_0="n"
272
273
# possible values: flac, mp3, ogg, opus (depending on what liquidsoap-plugins you installed)
stream_0_encoding="ogg"
David Trattnig's avatar
David Trattnig committed
274
275
276
277
278
279
280
281
282
# bitrate (with encoding types without bitrate like flac or ogg it is substituted. 32 => very poor quality. 320 => very high quality)
stream_0_bitrate="128"
# how many channels? everything else than 2 is considered as mono
stream_0_channels="2"
# to where we are streaming..?
stream_0_host="localhost"
# and which port?
stream_0_port="8888"
# the name of the mountpoint
283
stream_0_mountpoint="aura-test-0.ogg"
David Trattnig's avatar
David Trattnig committed
284
285
286
# username
stream_0_user="source"
# and the password
David Trattnig's avatar
David Trattnig committed
287
stream_0_password="source"
David Trattnig's avatar
David Trattnig committed
288
289
290
291
292
293
294
295
296
# stream url
stream_0_url="http://www.fro.at"
# the name of the stream
stream_0_name="AURA Test Stream 0"
# the genre of the stream
stream_0_genre="mixed"
# description of the stream
stream_0_description="Test Stream 0"

David Trattnig's avatar
David Trattnig committed
297
stream_1="n"
David Trattnig's avatar
David Trattnig committed
298
299
300
301
302
303
304
305
stream_1_encoding="flac"
stream_1_bitrate="128"
stream_1_channels="2"

stream_1_host="localhost"
stream_1_port="8888"
stream_1_mountpoint="aura-test-1.flac"
stream_1_user="source"
David Trattnig's avatar
David Trattnig committed
306
stream_1_password="source"
David Trattnig's avatar
David Trattnig committed
307
308
309
310
311
312

stream_1_url="http://www.fro.at"
stream_1_name="AURA Test Stream 1"
stream_1_genre="mixed"
stream_1_description="Test Stream 1"

David Trattnig's avatar
David Trattnig committed
313
stream_2="n"
David Trattnig's avatar
David Trattnig committed
314
315
316
317
318
319
320
321
stream_2_encoding="mp3"
stream_2_bitrate="64"
stream_2_channels="2"

stream_2_host="localhost"
stream_2_port="8888"
stream_2_mountpoint="aura-test-2.mp3"
stream_2_user="source"
David Trattnig's avatar
David Trattnig committed
322
stream_2_password="source"
David Trattnig's avatar
David Trattnig committed
323
324
325
326
327
328

stream_2_url="http://www.fro.at"
stream_2_name="AURA Test Stream 2"
stream_2_genre="mixed"
stream_2_description="Test Stream 2"

David Trattnig's avatar
David Trattnig committed
329
stream_3="n"
David Trattnig's avatar
David Trattnig committed
330
331
332
333
334
335
336
337
stream_3_encoding="ogg"
stream_3_bitrate="64"
stream_3_channels="2"

stream_3_host="localhost"
stream_3_port="8888"
stream_3_mountpoint="aura-test-3.ogg"
stream_3_user="source"
David Trattnig's avatar
David Trattnig committed
338
stream_3_password="source"
David Trattnig's avatar
David Trattnig committed
339
340
341
342
343
344

stream_3_url="http://www.fro.at"
stream_3_name="AURA Test Stream 3"
stream_3_genre="mixed"
stream_3_description="Test Stream 3"

David Trattnig's avatar
David Trattnig committed
345
stream_4="n"
David Trattnig's avatar
David Trattnig committed
346
347
348
349
350
351
352
353
stream_4_encoding="opus"
stream_4_bitrate="64"
stream_4_channels="2"

stream_4_host="localhost"
stream_4_port="8888"
stream_4_mountpoint="aura-test-4.opus"
stream_4_user="source"
David Trattnig's avatar
David Trattnig committed
354
stream_4_password="source"
David Trattnig's avatar
David Trattnig committed
355
356

stream_4_url="http://www.fro.at"
David Trattnig's avatar
David Trattnig committed
357
stream_4_name="AURA Test Stream 3"
David Trattnig's avatar
David Trattnig committed
358
stream_4_genre="mixed"
David Trattnig's avatar
David Trattnig committed
359
stream_4_description="Test Stream 3"