Created
June 19, 2017 11:47
-
-
Save 63phc/baf08d96bc15c58849ef9fae2938dd47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install | |
sudo apt install icecast2 | |
# configure: error: XSLT configuration could not be found | |
sudo apt install libxslt-dev | |
sudo apt install libshout-dev | |
sudo apt install libmp3lame-dev | |
sudo apt install libxml2-dev | |
# бэкап | |
sudo cp /etc/icecast2/icecast.xml /etc/icecast2/icecast.xml.back | |
service icecast2 start | |
#config | |
<icecast> | |
<limits> | |
<!-- Максимальное количество слушателей на весь сервер --> | |
<clients>10000</clients> | |
<!-- Максимальное количество подключённых клиентов (трансляторов) --> | |
<sources>4</sources> | |
<threadpool>5</threadpool> | |
<queue-size>524288</queue-size> | |
<client-timeout>30</client-timeout> | |
<header-timeout>15</header-timeout> | |
<source-timeout>10</source-timeout> | |
<!-- Если отключить эту штуку, то задержка в трансляции будет меньше --> | |
<burst-on-connect>0</burst-on-connect> | |
<burst-size>0</burst-size> | |
</limits> | |
<!-- Тут пароли для админа и трансляторов --> | |
<authentication> | |
<source-password>password1234</source-password> | |
<relay-password>password1234</relay-password> | |
<admin-user>admin</admin-user> | |
<admin-password>password1234</admin-password> | |
</authentication> | |
<!-- Настройки сервера --> | |
<hostname>stream.tjournal.ru</hostname> | |
<location>TJournal</location> | |
<admin>tech@tjournal.ru</admin> | |
<!-- Порт для подключения, не забываем открыть его в iptables --> | |
<listen-socket> | |
<port>8000</port> | |
</listen-socket> | |
<fileserve>1</fileserve> | |
<paths> | |
<basedir>/usr/share/icecast2</basedir> | |
<logdir>/var/log/icecast2</logdir> | |
<webroot>/usr/share/icecast2/web</webroot> | |
<adminroot>/usr/share/icecast2/admin</adminroot> | |
<alias source="/" dest="/status.xsl"/> | |
</paths> | |
<logging> | |
<accesslog>access.log</accesslog> | |
<errorlog>error.log</errorlog> | |
<loglevel>3</loglevel> | |
<logsize>10000</logsize> | |
</logging> | |
<security> | |
<chroot>0</chroot> | |
<!-- | |
Нужно поменять! | |
<changeowner> | |
<user>nobody</user> | |
<group>nogroup</group> | |
</changeowner> | |
--> | |
</security> | |
</icecast> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment