add icecast config

master
an 2019-05-29 21:57:02 -04:00
parent 30d41660bd
commit 87f5b27559
3 changed files with 104 additions and 15 deletions

View File

@ -19,6 +19,10 @@ $HOME/.zshrc zshrc
$HOME/src/scripts/* .
/etc/motsognir.conf motsognir.conf
/etc/systemd/network/* .
/etc/icecast.xml icecast.xml
/mnt/d/w2/Output/_dlscr/bookmark_get.ps1 bookmark_get.ps1
/usr/share/X11/xkb/symbols/progm progm.xkb
END
sed -i 's/password>.*<\//password>password removed<\//g' icecast.xml
sed -i 's/password\(\s*\)".*"/password\1"password removed"/g' mpd.conf

65
icecast.xml Normal file
View File

@ -0,0 +1,65 @@
<icecast>
<location>Ohio</location>
<admin>marrub@greyserv.net</admin>
<hostname>heavenisin.space</hostname>
<!-- don't disable, needed for images on the status page etc. -->
<fileserve>1</fileserve>
<limits>
<clients>7</clients>
<sources>1</sources>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
<burst-on-connect>1</burst-on-connect>
<burst-size>65535</burst-size>
</limits>
<authentication>
<source-password>password removed</source-password>
<relay-password>password removed</relay-password>
<admin-user>admin</admin-user>
<admin-password>password removed</admin-password>
</authentication>
<http-headers>
<header name="Access-Control-Allow-Origin" value="*" />
</http-headers>
<listen-socket>
<port>8000</port>
<shoutcast-mount>/stream.ogg</shoutcast-mount>
</listen-socket>
<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/usr/share/icecast</basedir>
<logdir>/var/log/icecast</logdir>
<webroot>/usr/share/icecast/web</webroot>
<adminroot>/usr/share/icecast/admin</adminroot>
<!-- <pidfile>/usr/share/icecast/icecast.pid</pidfile> -->
<alias source="/" destination="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->
<logarchive>1</logarchive>
</logging>
<security>
<chroot>0</chroot>
<changeowner>
<user>nobody</user>
<group>nobody</group>
</changeowner>
</security>
</icecast>

View File

@ -1,21 +1,41 @@
music_directory "~/Music"
playlist_directory "~/.config/mpd/playlists"
db_file "~/.config/mpd/database"
log_file "~/.config/mpd/log"
pid_file "~/.config/mpd/pid"
state_file "~/.config/mpd/state"
sticker_file "~/.config/mpd/sticker.sql"
bind_to_address "[::]"
port "6600"
bind_to_address "[::]"
port "6600"
db_file "~/.config/mpd/database"
log_file "~/.config/mpd/log"
music_directory "~/Music"
pid_file "~/.config/mpd/pid"
playlist_directory "~/.config/mpd/playlists"
state_file "~/.config/mpd/state"
sticker_file "~/.config/mpd/sticker.sql"
audio_output {
type "pulse"
name "Pulse Output"
type "pulse"
name "Pulse Output"
}
audio_output {
type "fifo"
name "mpdfifo"
path "~/.config/mpd/fifo"
format "44100:16:2"
type "fifo"
name "mpdfifo"
format "44100:16:2"
path "~/.config/mpd/fifo"
}
audio_output {
type "shout"
name "Heaven Is In Space"
always_on "yes"
encoder "vorbis"
format "44100:16:2"
quality "4.0"
host "127.0.0.1"
mount "/stream.ogg"
password "password removed"
port "8000"
protocol "icecast2"
public "yes"
}