l radio: add mp3 output
This commit is contained in:
parent
bb79bf0ae8
commit
87c02755d0
|
@ -144,6 +144,19 @@ in {
|
|||
extraConfig = ''
|
||||
log_level "default"
|
||||
auto_update "yes"
|
||||
volume_normalization "yes"
|
||||
|
||||
audio_output {
|
||||
type "httpd"
|
||||
name "lassulus radio mp3"
|
||||
encoder "lame" # optional
|
||||
port "8002"
|
||||
quality "5.0" # do not define if bitrate is defined
|
||||
# bitrate "128" # do not define if quality is defined
|
||||
format "44100:16:2"
|
||||
always_on "yes" # prevent MPD from disconnecting all listeners when playback is stopped.
|
||||
tags "yes" # httpd supports sending tags to listening streams.
|
||||
}
|
||||
|
||||
audio_output {
|
||||
type "httpd"
|
||||
|
@ -163,6 +176,7 @@ in {
|
|||
tables = {
|
||||
filter.INPUT.rules = [
|
||||
{ predicate = "-p tcp --dport 8000"; target = "ACCEPT"; }
|
||||
{ predicate = "-p tcp --dport 8002"; target = "ACCEPT"; }
|
||||
{ predicate = "-i retiolum -p tcp --dport 8001"; target = "ACCEPT"; }
|
||||
];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue