icecast.xml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <icecast>
  2. <limits>
  3. <clients>100</clients>
  4. <sources>2</sources>
  5. <queue-size>524288</queue-size>
  6. <client-timeout>30</client-timeout>
  7. <header-timeout>15</header-timeout>
  8. <source-timeout>10</source-timeout>
  9. <!-- If enabled, this will provide a burst of data when a client
  10. first connects, thereby significantly reducing the startup
  11. time for listeners that do substantial buffering. However,
  12. it also significantly increases latency between the source
  13. client and listening client. For low-latency setups, you
  14. might want to disable this. -->
  15. <burst-on-connect>1</burst-on-connect>
  16. <!-- same as burst-on-connect, but this allows for being more
  17. specific on how much to burst. Most people won't need to
  18. change from the default 64k. Applies to all mountpoints -->
  19. <burst-size>65535</burst-size>
  20. </limits>
  21. <authentication>
  22. <!-- Sources log in with username 'source' -->
  23. <source-password>hackme</source-password>
  24. <!-- Relays log in username 'relay' -->
  25. <relay-password>hackme</relay-password>
  26. <!-- Admin logs in with the username given below -->
  27. <admin-user>admin</admin-user>
  28. <admin-password>hackme</admin-password>
  29. </authentication>
  30. <!-- Uncomment this if you want directory listings -->
  31. <!--
  32. <directory>
  33. <yp-url-timeout>15</yp-url-timeout>
  34. <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
  35. </directory>
  36. <directory>
  37. <yp-url-timeout>15</yp-url-timeout>
  38. <yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
  39. </directory>
  40. -->
  41. <!-- This is the hostname other people will use to connect to your server.
  42. It affects mainly the urls generated by Icecast for playlists and yp
  43. listings. -->
  44. <hostname>localhost</hostname>
  45. <!-- You can use these two if you only want a single listener -->
  46. <!--<port>8000</port> -->
  47. <!--<bind-address>127.0.0.1</bind-address>-->
  48. <!-- You may have multiple <listener> elements -->
  49. <listen-socket>
  50. <port>8000</port>
  51. <!-- <bind-address>127.0.0.1</bind-address> -->
  52. </listen-socket>
  53. <!--
  54. <listen-socket>
  55. <port>8001</port>
  56. </listen-socket>
  57. -->
  58. <!--<master-server>127.0.0.1</master-server>-->
  59. <!--<master-server-port>8001</master-server-port>-->
  60. <!--<master-update-interval>120</master-update-interval>-->
  61. <!--<master-password>hackme</master-password>-->
  62. <!-- setting this makes all relays on-demand unless overridden, this is
  63. useful for master relays which do not have <relay> definitions here.
  64. The default is 0 -->
  65. <!--<relays-on-demand>1</relays-on-demand>-->
  66. <!--
  67. <relay>
  68. <server>127.0.0.1</server>
  69. <port>8001</port>
  70. <mount>/example.ogg</mount>
  71. <local-mount>/different.ogg</local-mount>
  72. <on-demand>0</on-demand>
  73. <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
  74. </relay>
  75. -->
  76. <!-- Only define a <mount> section if you want to use advanced options,
  77. like alternative usernames or passwords -->
  78. <!--
  79. <mount>
  80. <mount-name>/example-complex.ogg</mount-name>
  81. <username>othersource</username>
  82. <password>hackmemore</password>
  83. <max-listeners>1</max-listeners>
  84. <dump-file>/tmp/dump-example1.ogg</dump-file>
  85. <burst-size>65536</burst-size>
  86. <fallback-mount>/example2.ogg</fallback-mount>
  87. <fallback-override>1</fallback-override>
  88. <fallback-when-full>1</fallback-when-full>
  89. <intro>/example_intro.ogg</intro>
  90. <hidden>1</hidden>
  91. <no-yp>1</no-yp>
  92. <authentication type="htpasswd">
  93. <option name="filename" value="myauth"/>
  94. <option name="allow_duplicate_users" value="0"/>
  95. </authentication>
  96. <on-connect>/home/icecast/bin/stream-start</on-connect>
  97. <on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
  98. </mount>
  99. <mount>
  100. <mount-name>/auth_example.ogg</mount-name>
  101. <authentication type="url">
  102. <option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
  103. <option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
  104. <option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
  105. <option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
  106. </authentication>
  107. </mount>
  108. -->
  109. <fileserve>1</fileserve>
  110. <!-- set the mountpoint for a shoutcast source to use, the default if not
  111. specified is /stream but you can change it here if an alternative is
  112. wanted or an extension is required -->
  113. <!--
  114. <shoutcast-mount>/live.nsv</shoutcast-mount>
  115. -->
  116. <paths>
  117. <!-- basedir is only used if chroot is enabled -->
  118. <basedir>/usr/share/icecast</basedir>
  119. <!-- Note that if <chroot> is turned on below, these paths must both
  120. be relative to the new root, not the original root -->
  121. <logdir>/var/log/icecast</logdir>
  122. <webroot>/usr/share/icecast/web</webroot>
  123. <adminroot>/usr/share/icecast/admin</adminroot>
  124. <!-- <pidfile>/usr/share/icecast/icecast.pid</pidfile> -->
  125. <!-- Aliases: treat requests for 'source' path as being for 'dest' path
  126. May be made specific to a port or bound address using the "port"
  127. and "bind-address" attributes.
  128. -->
  129. <!--
  130. <alias source="/foo" dest="/bar"/>
  131. -->
  132. <!-- Aliases: can also be used for simple redirections as well,
  133. this example will redirect all requests for http://server:port/ to
  134. the status page
  135. -->
  136. <alias source="/" dest="/status.xsl"/>
  137. </paths>
  138. <logging>
  139. <accesslog>access.log</accesslog>
  140. <errorlog>error.log</errorlog>
  141. <!-- <playlistlog>playlist.log</playlistlog> -->
  142. <loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
  143. <logsize>10000</logsize> <!-- Max size of a logfile -->
  144. <!-- If logarchive is enabled (1), then when logsize is reached
  145. the logfile will be moved to [error|access|playlist].log.DATESTAMP,
  146. otherwise it will be moved to [error|access|playlist].log.old.
  147. Default is non-archive mode (i.e. overwrite)
  148. -->
  149. <!-- <logarchive>1</logarchive> -->
  150. </logging>
  151. <security>
  152. <chroot>0</chroot>
  153. <changeowner>
  154. <user>icecast</user>
  155. <group>nogroup</group>
  156. </changeowner>
  157. </security>
  158. </icecast>