Advertisement
Guest User

Untitled

a guest
Aug 28th, 2017
135
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <icecast>
  2. <location>UK</location>
  3. <admin>webmaster@localhost</admin>
  4.  
  5. <limits>
  6. <clients>100</clients>
  7. <sources>2</sources>
  8. <queue-size>524288</queue-size>
  9. <client-timeout>30</client-timeout>
  10. <header-timeout>15</header-timeout>
  11. <source-timeout>10</source-timeout>
  12. <!-- same as burst-on-connect, but this allows for being more
  13. specific on how much to burst. Most people won't need to
  14. change from the default 64k. Applies to all mountpoints -->
  15. <burst-size>65535</burst-size>
  16. <!--
  17. <max-bandwidth>100M</max-bandwidth>
  18. -->
  19. </limits>
  20.  
  21. <authentication>
  22. <!-- Sources log in with username 'source' -->
  23. <source-password>*********</source-password>
  24. <!-- Relays log in username 'relay' -->
  25. <relay-password>********</relay-password>
  26.  
  27. <!-- Admin logs in with the username given below -->
  28. <admin-user>admin</admin-user>
  29. <admin-password>********</admin-password>
  30. </authentication>
  31.  
  32. <!-- Uncomment this if you want directory listings -->
  33. <!--
  34. <directory>
  35. <yp-url-timeout>15</yp-url-timeout>
  36. <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
  37. </directory>
  38. -->
  39.  
  40. <!-- This is the hostname other people will use to connect to your server.
  41. It affects mainly the urls generated by Icecast for playlists and yp
  42. listings. -->
  43. <hostname>127.0.0.1</hostname>
  44.  
  45. <!-- set the mountpoint for a shoutcast source to use, the default if not
  46. specified is /stream but you can change it here if an alternative is
  47. wanted or an extension is required
  48. <shoutcast-mount>/live.nsv</shoutcast-mount>
  49. -->
  50.  
  51. <!-- port to use when talking to YP etc -->
  52. <!--<port>8000</port> -->
  53.  
  54. <!-- You may have multiple <listener> elements -->
  55. <listen-socket>
  56. <port>8000</port>
  57. <!-- <bind-address>127.0.0.1</bind-address> -->
  58. <!-- use <shoutcast-mount> in here to implicitly define port n+1 -->
  59. </listen-socket>
  60. <!--
  61. <listen-socket>
  62. <port>8001</port>
  63. <ssl>1</ssl>
  64. </listen-socket>
  65. -->
  66.  
  67. <!--<master-server>127.0.0.1</master-server>-->
  68. <!--<master-server-port>8001</master-server-port>-->
  69. <!--<master-update-interval>120</master-update-interval>-->
  70.  
  71. <!--<master-username>hackme</master-username>-->
  72. <!--<master-password>hackme</master-password>-->
  73.  
  74. <!-- issue above authentication for relays in slave setup -->
  75. <!--<master-relay-auth>1</master-relay-auth>-->
  76.  
  77. <!-- setting this makes all relays on-demand unless overridden, this is
  78. useful for master relays which do not have <relay> definitions here.
  79. The default is 0 -->
  80. <!--<relays-on-demand>1</relays-on-demand>-->
  81.  
  82.  
  83. <!-- Request the master server to redirect new listeners to this slave
  84. the details passed are based on <hostname> and <port> -->
  85. <!--<master-redirect>1</master-redirect>-->
  86.  
  87. <!-- The maximum nuber of slaves that can register for new listener redirection. -->
  88. <!--<max-redirect-slaves>10</max-redirect-slaves>-->
  89.  
  90. <!-- Relays. State connection information, and by default
  91. request inline metadata for mp3 streams if available.
  92. An on-demand relay will only retrieve the stream if
  93. there are listeners connected -->
  94. <!--
  95. <relay>
  96. <server>127.0.0.1</server>
  97. <port>8001</port>
  98. <mount>/example.ogg</mount>
  99. <local-mount>/different.ogg</local-mount>
  100. <on-demand>1</on-demand>
  101. <retry-delay>30</retry-delay>
  102.  
  103. <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
  104. </relay>
  105. -->
  106. <!-- Allow multiple master servers to be specified, tries each one in turn.
  107. <relay>
  108. <local-mount>/stream.mp3</local-mount>
  109. <server>a.b.c.d</server>
  110. <timeout>6</timeout>
  111. <master>
  112. <port>8000</port>
  113. <mount>/a</mount>
  114. </master>
  115. <master>
  116. <port>80</port>
  117. <mount>/</mount>
  118. </master>
  119. </relay>
  120. -->
  121.  
  122. <!-- Only define a <mount> section if you want to use advanced options,
  123. like alternative usernames or passwords
  124. With a master/slave setup you need to define a mount in the master
  125. or else the server will assume that the stream is not to be made
  126. available to the slave.
  127. <mount>
  128. <mount-name>/*.ogg</mount-name>
  129.  
  130. <username>othersource</username>
  131. <password>hackmemore</password>
  132.  
  133. <max-listeners>1</max-listeners>
  134. <max-bandwidth>1000k</max-bandwidth>
  135. <file-seekable>0</file-seekable>
  136. <dump-file>/backup/live-%d-%b.ogg</dump-file>
  137. <burst-size>65536</burst-size>
  138. <fallback-mount>/example2.ogg</fallback-mount>
  139. <fallback-override>1</fallback-override>
  140. <fallback-when-full>1</fallback-when-full>
  141. <intro>/path/to/stream-intro.ogg</intro>
  142. <max-listener-duration>3600</max-listener-duration>
  143. <hidden>1</hidden>
  144. <authentication type="htpasswd">
  145. <option name="filename" value="myauth"/>
  146. <option name="allow_duplicate_users" value="0"/>
  147. </authentication>
  148. <on-connect>/home/icecast/bin/stream-start</on-connect>
  149. <on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
  150. <file-seekable>0</file-seekable>
  151. </mount>
  152. -->
  153. <!-- other auth possibilities include running a command
  154. to do the auth, mount, user and pass are passed via
  155. stdin to the program
  156. <mount>
  157. ....
  158. <authentication type="command">
  159. <option name="listener_add" value="auth_verify"/>
  160. </authentication>
  161.  
  162. or
  163.  
  164. for url auth, the add url needs to return a "icecast-auth-user:" http
  165. header for a user to authenicate. URLs are sent params via POST.
  166.  
  167. <authentication type="url">
  168. <option name="username" value="admin"/>
  169. <option name="password" value="hackme"/>
  170. <option name="handlers" value="3" />
  171. <option name="stream_auth" value="http://myauthserver.com/scripts/auth_mount.php"/>
  172. <option name="mount_add" value="http://myauthserver.com/scripts/add_mount.php"/>
  173. <option name="mount_remove" value="http://myauthserver.com/scripts/del_mount.php"/>
  174. <option name="listener_add" value="http://myauthserver.com/scripts/add_listener.php"/>
  175. <option name="listener_remove" value="http://myauthserver.com/scripts/del_listener.php"/>
  176. </authentication>
  177. </mount -->
  178.  
  179. <mount>
  180. <mount-name>/silence.mp3</mount-name>
  181. <hidden>0</hidden>
  182. </mount>
  183. <mount>
  184. <mount-name>/mopidy.mp3</mount-name>
  185. <fallback-mount>/silence.mp3</fallback-mount>
  186. <fallback-override>1</fallback-override>
  187. </mount>
  188.  
  189. <fileserve>1</fileserve>
  190.  
  191. <paths>
  192. <!-- basedir is only used if chroot is enabled -->
  193. <basedir>/usr/share/icecast2</basedir>
  194.  
  195. <!-- Note that if <chroot> is turned on below, these paths must both
  196. be relative to the new root, not the original root -->
  197. <logdir>/var/log/icecast2</logdir>
  198. <webroot>/usr/share/icecast2/web</webroot>
  199. <adminroot>/usr/share/icecast2/admin</adminroot>
  200. <!-- <pidfile>/usr/share/icecast2/icecast.pid</pidfile> -->
  201. <!-- <ssl-certificate>/usr/share/icecast2/icecast.pem</ssl-certificate> -->
  202. <!-- <deny-ip>/path/to/file-with-IPs</deny-ip> -->
  203. <!-- <allow-ip>/path/to/file-with-IPs</allow-ip> -->
  204. <!-- <deny-agents>/path/to/file-with-useragents</deny-agents> -->
  205.  
  206. <!-- location of mime types files used for file serving -->
  207. <!-- <mime-types>/etc/mime.types</mime-types> -->
  208.  
  209. <!-- Aliases: treat requests for 'source' path as being for 'dest' path
  210. May be made specific to a port or bound address using the "port"
  211. and "bind-address" attributes.
  212. -->
  213. <!--
  214. <alias source="/foo" dest="/bar"/>
  215. -->
  216. <!-- Aliases: can also be used for simple redirections as well,
  217. this example will redirect all requests for http://server:port/ to
  218. the status page
  219. -->
  220. <alias source="/" dest="/index.html"/>
  221. </paths>
  222.  
  223. <logging>
  224. <accesslog>access.log</accesslog>
  225. <errorlog>error.log</errorlog>
  226. <!-- <accesslog_ip>0<accesslog_ip> -->
  227. <!-- <playlistlog>playlist.log</playlistlog> -->
  228. <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
  229. <logsize>10000</logsize> <!-- Max size of a logfile -->
  230. <!-- If logarchive is enabled (1), then when logsize is reached
  231. the logfile will be moved to [error|access|playlist].log.DATESTAMP,
  232. otherwise it will be moved to [error|access|playlist].log.old.
  233. Default is non-archive mode (i.e. overwrite)
  234. -->
  235. <!-- <logarchive>1</logarchive> -->
  236. </logging>
  237.  
  238. <security>
  239. <chroot>0</chroot>
  240. <!--
  241. <changeowner>
  242. <user>nobody</user>
  243. <group>nogroup</group>
  244. </changeowner>
  245. -->
  246. </security>
  247. </icecast>
Advertisement
RAW Paste Data Copied
Advertisement