Advertisement
Guest User

Untitled

a guest
Dec 10th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.48 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. <!-- This is the hostname other people will use to connect to your server.
  9. It affects mainly the urls generated by Icecast for playlists and yp
  10. listings. You MUST configure it properly for YP listings to work!
  11. -->
  12. <hostname>localhost</hostname>
  13.  
  14. <!-- IMPORTANT!
  15. Especially for inexperienced users:
  16. Start out by ONLY changing all passwords and restarting Icecast.
  17. For detailed setup instructions please refer to the documentation.
  18. It's also available here: http://icecast.org/docs/
  19. -->
  20.  
  21. <limits>
  22. <clients>100</clients>
  23. <sources>2</sources>
  24. <queue-size>524288</queue-size>
  25. <client-timeout>30</client-timeout>
  26. <header-timeout>15</header-timeout>
  27. <source-timeout>10</source-timeout>
  28. <!-- If enabled, this will provide a burst of data when a client
  29. first connects, thereby significantly reducing the startup
  30. time for listeners that do substantial buffering. However,
  31. it also significantly increases latency between the source
  32. client and listening client. For low-latency setups, you
  33. might want to disable this. -->
  34. <burst-on-connect>1</burst-on-connect>
  35. <!-- same as burst-on-connect, but this allows for being more
  36. specific on how much to burst. Most people won't need to
  37. change from the default 64k. Applies to all mountpoints -->
  38. <burst-size>65535</burst-size>
  39. </limits>
  40.  
  41. <authentication>
  42. <!-- Sources log in with username 'source' -->
  43. <source-password>Admin123</source-password>
  44. <!-- Relays log in with username 'relay' -->
  45. <relay-password>Admin123</relay-password>
  46.  
  47. <!-- Admin logs in with the username given below -->
  48. <admin-user>admin</admin-user>
  49. <admin-password>Admin123</admin-password>
  50. </authentication>
  51.  
  52. <!-- set the mountpoint for a shoutcast source to use, the default if not
  53. specified is /stream but you can change it here if an alternative is
  54. wanted or an extension is required
  55. <shoutcast-mount>/live.nsv</shoutcast-mount>
  56. -->
  57.  
  58. <!-- Uncomment this if you want directory listings -->
  59. <!--
  60. <directory>
  61. <yp-url-timeout>15</yp-url-timeout>
  62. <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
  63. </directory>
  64. -->
  65.  
  66. <!-- You may have multiple <listener> elements -->
  67. <listen-socket>
  68. <port>8000</port>
  69. <!-- <bind-address>127.0.0.1</bind-address> -->
  70. <!-- <shoutcast-mount>/stream</shoutcast-mount> -->
  71. </listen-socket>
  72. <!--
  73. <listen-socket>
  74. <port>8080</port>
  75. </listen-socket>
  76. -->
  77. <!--
  78. <listen-socket>
  79. <port>8443</port>
  80. <ssl>1</ssl>
  81. </listen-socket>
  82. -->
  83.  
  84.  
  85. <!-- Global header settings
  86. Headers defined here will be returned for every HTTP request to Icecast.
  87.  
  88. The ACAO header makes Icecast public content/API by default
  89. This will make streams easier embeddable (some HTML5 functionality needs it).
  90. Also it allows direct access to e.g. /status-json.xsl from other sites.
  91. If you don't want this, comment out the following line or read up on CORS.
  92. -->
  93. <http-headers>
  94. <header name="Access-Control-Allow-Origin" value="*" />
  95. </http-headers>
  96.  
  97.  
  98. <!-- Relaying
  99. You don't need this if you only have one server.
  100. Please refer to the config for a detailed explanation.
  101. -->
  102. <!--<master-server>127.0.0.1</master-server>-->
  103. <!--<master-server-port>8001</master-server-port>-->
  104. <!--<master-update-interval>120</master-update-interval>-->
  105. <!--<master-password>hackme</master-password>-->
  106.  
  107. <!-- setting this makes all relays on-demand unless overridden, this is
  108. useful for master relays which do not have <relay> definitions here.
  109. The default is 0 -->
  110. <!--<relays-on-demand>1</relays-on-demand>-->
  111.  
  112. <!--
  113. <relay>
  114. <server>127.0.0.1</server>
  115. <port>8080</port>
  116. <mount>/example.ogg</mount>
  117. <local-mount>/different.ogg</local-mount>
  118. <on-demand>0</on-demand>
  119.  
  120. <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
  121. </relay>
  122. -->
  123.  
  124.  
  125. <!-- Mountpoints
  126. Only define <mount> sections if you want to use advanced options,
  127. like alternative usernames or passwords
  128. -->
  129.  
  130. <!-- Default settings for all mounts that don't have a specific <mount type="normal">.
  131. -->
  132. <!--
  133. <mount type="default">
  134. <public>0</public>
  135. <intro>/server-wide-intro.ogg</intro>
  136. <max-listener-duration>3600</max-listener-duration>
  137. <authentication type="url">
  138. <option name="mount_add" value="http://auth.example.org/stream_start.php"/>
  139. </authentication>
  140. <http-headers>
  141. <header name="foo" value="bar" />
  142. </http-headers>
  143. </mount>
  144. -->
  145.  
  146. <!-- Normal mounts -->
  147. <!--
  148. <mount type="normal">
  149. <mount-name>/example-complex.ogg</mount-name>
  150.  
  151. <username>othersource</username>
  152. <password>hackmemore</password>
  153.  
  154. <max-listeners>1</max-listeners>
  155. <dump-file>/tmp/dump-example1.ogg</dump-file>
  156. <burst-size>65536</burst-size>
  157. <fallback-mount>/example2.ogg</fallback-mount>
  158. <fallback-override>1</fallback-override>
  159. <fallback-when-full>1</fallback-when-full>
  160. <intro>/example_intro.ogg</intro>
  161. <hidden>1</hidden>
  162. <public>1</public>
  163. <authentication type="htpasswd">
  164. <option name="filename" value="myauth"/>
  165. <option name="allow_duplicate_users" value="0"/>
  166. </authentication>
  167. <http-headers>
  168. <header name="Access-Control-Allow-Origin" value="http://webplayer.example.org" />
  169. <header name="baz" value="quux" />
  170. </http-headers>
  171. </mount>
  172. -->
  173.  
  174. <!--
  175. <mount type="normal">
  176. <mount-name>/auth_example.ogg</mount-name>
  177. <authentication type="url">
  178. <option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
  179. <option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
  180. <option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
  181. <option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
  182. <option name="headers" value="x-pragma,x-token"/>
  183. <option name="header_prefix" value="ClientHeader."/>
  184. </authentication>
  185. </mount>
  186. -->
  187.  
  188. <fileserve>1</fileserve>
  189.  
  190. <paths>
  191. <logdir>./log</logdir>
  192. <webroot>./web</webroot>
  193. <adminroot>./admin</adminroot>
  194.  
  195. <!-- Aliases: treat requests for 'source' path as being for 'dest' path
  196. May be made specific to a port or bound address using the "port"
  197. and "bind-address" attributes.
  198. -->
  199. <!--
  200. <alias source="/foo" destination="/bar"/>
  201. -->
  202. <!-- Aliases: can also be used for simple redirections as well,
  203. this example will redirect all requests for http://server:port/ to
  204. the status page
  205. -->
  206. <alias source="/" destination="/status.xsl"/>
  207. <!-- The certificate file needs to contain both public and private part.
  208. Both should be PEM encoded.
  209. <ssl-certificate>./icecast.pem</ssl-certificate>
  210. -->
  211. </paths>
  212.  
  213. <logging>
  214. <accesslog>access.log</accesslog>
  215. <errorlog>error.log</errorlog>
  216. <!-- <playlistlog>playlist.log</playlistlog> -->
  217. <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
  218. <logsize>10000</logsize> <!-- Max size of a logfile -->
  219. <!-- If logarchive is enabled (1), then when logsize is reached
  220. the logfile will be moved to [error|access|playlist].log.DATESTAMP,
  221. otherwise it will be moved to [error|access|playlist].log.old.
  222. Default is non-archive mode (i.e. overwrite)
  223. -->
  224. <!-- <logarchive>1</logarchive> -->
  225. </logging>
  226. </icecast>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement