Advertisement
Guest User

Untitled

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