sample-development.engine.ini 8.05 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
8
9
10
11
[station]
station_name="Radio Aura"
station_logo_url=https://o94.at/themes/custom/radio_orange/logo1.png
station_logo_size=180px


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
20
21
22
23
db_charset="utf8"

[redis]
redis_host="localhost"
redis_port=6379
redis_db=0

David Trattnig's avatar
David Trattnig committed
24
25
[monitoring]
mail_server=""
David Trattnig's avatar
David Trattnig committed
26
27
mail_server_port="587"
mail_user="aura@subsquare.at"
28
mail_pass="---SECRET--PASSWORD---"
David Trattnig's avatar
David Trattnig committed
29
# if you want to send multiple adminmails, make them space separated
David Trattnig's avatar
David Trattnig committed
30
admin_mail="david@subsquare.at"
David Trattnig's avatar
David Trattnig committed
31
# with from mailadress should be used
David Trattnig's avatar
David Trattnig committed
32
from_mail="monitoring@aura.engine"
David Trattnig's avatar
David Trattnig committed
33
34
# The beginning of the subject. With that you can easily apply filter rules using a mail client
mailsubject_prefix="[Aura Engine]"
David Trattnig's avatar
David Trattnig committed
35
36
37

[dataurls]
# The URL to get the Calendar via PV/Steering
David Trattnig's avatar
David Trattnig committed
38
api_calendar_url="http://localhost:8000/api/v1/playout"
David Trattnig's avatar
David Trattnig committed
39
40
41
# The URL to get show details via PV/Steering
api_show_url="http://localhost:8000/api/v1/shows/${ID}/"
# The URL to get playlist details via Tank
David Trattnig's avatar
David Trattnig committed
42
43
44
45
46
47
api_playlist_url="http://localhost:8040/api/v1/shows/${SLUG}/playlists"

# URL and Port of the API endpoints exposed by engine
exposed_api_url=http://localhost:3333/api/v1/
api_port=3333

David Trattnig's avatar
David Trattnig committed
48
49
50
51
52
53
54
55
56
57
58
# how often should the calendar be fetched in seconds (This determines the time of the last change before a specific show)
fetching_frequency=3600

# sets the time how long we have to fade in and out, when we select another mixer input
# values are in seconds
# this is solved on engine level because it is kind of tough with liquidsoap
[fading]
fade_in_time="0.5"
fade_out_time="2.5"

#######################
59
# Liquidsoap Settings #
David Trattnig's avatar
David Trattnig committed
60
61
62
63
#######################

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

64
65
66
67
68
[lqs]
liquidsoap_path="/home/david/.opam/4.08.0/bin/liquidsoap"
liquidsoap_working_dir="modules/liquidsoap/"

# Liquidsoap execution delay in seconds; Crucial to keep things in sync
69
70
lqs_delay_offset=1

David Trattnig's avatar
David Trattnig committed
71
72
[user]
# the user and group under which this software will run
David Trattnig's avatar
David Trattnig committed
73
74
daemongroup="engineuser"
daemonuser="engineuser"
David Trattnig's avatar
David Trattnig committed
75
76

[socket]
David Trattnig's avatar
David Trattnig committed
77
socketdir="/home/david/Code/aura/engine/modules/liquidsoap"
David Trattnig's avatar
David Trattnig committed
78
79

[logging]
David Trattnig's avatar
David Trattnig committed
80
81
logdir="/home/david/Code/aura/engine/logs"
#logdir="/var/log/aura"
David Trattnig's avatar
David Trattnig committed
82
83
84
# possible values: debug, info, warning, error, critical
loglevel="info"

David Trattnig's avatar
David Trattnig committed
85
86
87
88
[audiofolder]
audiofolder="/home/david/Code/aura/tank-store"

[fallback]
David Trattnig's avatar
David Trattnig committed
89
# track_sensitive => fallback_folder track sensitivity
David Trattnig's avatar
David Trattnig committed
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# 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."
fallback_threshold="-50."

# a folder holding music for station-fallbacks
fallback_music_folder="/home/david/Music/Genres/beats-breaks-dub-down-hiphop"
fallback_show_name="Random Music"
fallback_show_type="Unmoderated Music"
fallback_show_host="Magic Shuffle"
fallback_title_not_available="Title not available"

David Trattnig's avatar
David Trattnig committed
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123

[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
124
input_device_0=""
David Trattnig's avatar
David Trattnig committed
125
126
127
128
129
input_device_1=""
input_device_2=""
input_device_3=""
input_device_4=""
# same same, but different
130
output_device_0="default"
David Trattnig's avatar
David Trattnig committed
131
132
133
134
135
136
137
138
139
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
David Trattnig's avatar
David Trattnig committed
140
alsa_buffer="8192"
David Trattnig's avatar
David Trattnig committed
141
#alsa_buffer="16384"
David Trattnig's avatar
David Trattnig committed
142
# alsa_buffer_length => int
David Trattnig's avatar
David Trattnig committed
143
alsa_buffer_length="25"
David Trattnig's avatar
David Trattnig committed
144
# alsa_periods => int
David Trattnig's avatar
David Trattnig committed
145
alsa_periods="0"
David Trattnig's avatar
David Trattnig committed
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# frame_duration => double
frame_duration=""
# frame_size => int
frame_size=""

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

# you can define up to 5 recorder types.
# aac, flac, mp3, ogg, opus and wav is supported

[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
163
rec_0_folder="/var/recordings/flac"
David Trattnig's avatar
David Trattnig committed
164
165
166
167
168
169
170
171
172
173
174
# 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"

# aac example
rec_1="n"
David Trattnig's avatar
David Trattnig committed
175
rec_1_folder="/var/recordings/aac"
David Trattnig's avatar
David Trattnig committed
176
177
178
179
180
181
182
rec_1_duration="30"
rec_1_encoding="aac"
rec_1_bitrate="64"
rec_1_channels="2"

# mp3 example
rec_2="n"
David Trattnig's avatar
David Trattnig committed
183
rec_2_folder="/var/recordings/mp3"
David Trattnig's avatar
David Trattnig committed
184
185
186
187
188
189
190
rec_2_duration="30"
rec_2_encoding="mp3"
rec_2_bitrate="32"
rec_2_channels="2"

# ogg example
rec_3="n"
David Trattnig's avatar
David Trattnig committed
191
rec_3_folder="/var/recordings/ogg"
David Trattnig's avatar
David Trattnig committed
192
193
194
195
196
197
198
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
199
rec_4_folder="/var/recordings/opus"
David Trattnig's avatar
David Trattnig committed
200
201
202
203
204
205
206
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
207
#rec_4_folder="/var/recordings/wav"
David Trattnig's avatar
David Trattnig committed
208
209
210
211
212
213
214
215
216
217
218
219
220
221
#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
# aac, flac, mp3, ogg and opus is supported

[stream]
# defines enabled or not
David Trattnig's avatar
David Trattnig committed
222
stream_0="n"
David Trattnig's avatar
David Trattnig committed
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
# possible values: aac, flac, mp3, ogg, opus (depending on what liquidsoap-plugins you installed)
stream_0_encoding="aac"
# 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
stream_0_mountpoint="aura-test-0.aac"
# username
stream_0_user="source"
# and the password
David Trattnig's avatar
David Trattnig committed
238
stream_0_password="source"
David Trattnig's avatar
David Trattnig committed
239
240
241
242
243
244
245
246
247
# 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
248
stream_1="n"
David Trattnig's avatar
David Trattnig committed
249
250
251
252
253
254
255
256
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
257
stream_1_password="source"
David Trattnig's avatar
David Trattnig committed
258
259
260
261
262
263

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
264
stream_2="n"
David Trattnig's avatar
David Trattnig committed
265
266
267
268
269
270
271
272
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
273
stream_2_password="source"
David Trattnig's avatar
David Trattnig committed
274
275
276
277
278
279

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
280
stream_3="n"
David Trattnig's avatar
David Trattnig committed
281
282
283
284
285
286
287
288
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
289
stream_3_password="source"
David Trattnig's avatar
David Trattnig committed
290
291
292
293
294
295

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
296
stream_4="n"
David Trattnig's avatar
David Trattnig committed
297
298
299
300
301
302
303
304
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
305
stream_4_password="source"
David Trattnig's avatar
David Trattnig committed
306
307

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