Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.17 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>Norway</location>
  6. <admin>harry@aasterud.com</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>aasterud.onthewifi.com</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>3</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>xxx</source-password>
  44. <!-- Relays log in with username 'relay' -->
  45. <relay-password>xxx</relay-password>
  46.  
  47. <!-- Admin logs in with the username given below -->
  48. <admin-user>xxx</admin-user>
  49. <admin-password>xxx</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>/harrys-radio-station-LQ</shoutcast-mount>
  56. -->
  57.  
  58. <!-- set the mountpoint for a shoutcast source to use, the default if not
  59. specified is /stream but you can change it here if an alternative is
  60. wanted or an extension is required
  61. <shoutcast-mount>/harrys-radio-station-HQ</shoutcast-mount>
  62. -->
  63.  
  64. <!-- set the mountpoint for a shoutcast source to use, the default if not
  65. specified is /stream but you can change it here if an alternative is
  66. wanted or an extension is required
  67. <shoutcast-mount>/harrys-radio-station-HQ.mp3</shoutcast-mount>
  68. -->
  69.  
  70. <!-- Uncomment this if you want directory listings -->
  71.  
  72. <directory>
  73. <yp-url-timeout>15</yp-url-timeout>
  74. <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
  75. </directory>
  76.  
  77.  
  78. <!-- You may have multiple <listener> elements -->
  79. <listen-socket>
  80. <port>9000</port>
  81. <!-- <bind-address>thermaltake</bind-address> -->
  82. <!-- <shoutcast-mount>/stream</shoutcast-mount> -->
  83. </listen-socket>
  84. <!--
  85. <listen-socket>
  86. <port>9080</port>
  87. </listen-socket>
  88. -->
  89. <!--
  90. <listen-socket>
  91. <port>9443</port>
  92. <ssl>1</ssl>
  93. </listen-socket>
  94. -->
  95.  
  96.  
  97. <!-- Global header settings
  98. Headers defined here will be returned for every HTTP request to Icecast.
  99.  
  100. The ACAO header makes Icecast public content/API by default
  101. This will make streams easier embeddable (some HTML5 functionality needs it).
  102. Also it allows direct access to e.g. /status-json.xsl from other sites.
  103. If you don't want this, comment out the following line or read up on CORS.
  104. -->
  105. <http-headers>
  106. <header name="Access-Control-Allow-Origin" value="*" />
  107. </http-headers>
  108.  
  109.  
  110. <!-- Relaying
  111. You don't need this if you only have one server.
  112. Please refer to the config for a detailed explanation.
  113. -->
  114. <!--<master-server>127.0.0.1</master-server>-->
  115. <!--<master-server-port>8001</master-server-port>-->
  116. <!--<master-update-interval>120</master-update-interval>-->
  117. <!--<master-password>hackme</master-password>-->
  118.  
  119. <!-- setting this makes all relays on-demand unless overridden, this is
  120. useful for master relays which do not have <relay> definitions here.
  121. The default is 0 -->
  122. <!--<relays-on-demand>1</relays-on-demand>-->
  123.  
  124. <!--
  125. <relay>
  126. <server>127.0.0.1</server>
  127. <port>8080</port>
  128. <mount>/example.ogg</mount>
  129. <local-mount>/different.ogg</local-mount>
  130. <on-demand>0</on-demand>
  131.  
  132. <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
  133. </relay>
  134. -->
  135.  
  136.  
  137. <!-- Mountpoints
  138. Only define <mount> sections if you want to use advanced options,
  139. like alternative usernames or passwords
  140. -->
  141.  
  142. <mount>
  143. <mount-name>/Harrys-radio-HQ.mp3</mount-name><!-- Nom de montage de votre serveur -->
  144.  
  145. <username>xxx</username> <!-- Login de montage de votre serveur -->
  146. <password>xxx</password> <!-- Mot de passe de montage de votre serveur -->
  147.  
  148. <intro>\Harrys-radio-sweeper-full-version-LQ_96.mp3</intro>
  149.  
  150. <max-listeners>100</max-listeners> <!-- Limite d'auditeurs -->
  151. <dump-file></dump-file> <!-- Point de montage optionel -->
  152. <burst-size>65536</burst-size> <!-- Valeur du buffer -->
  153. <fallback-mount></fallback-mount> <!-- Point de montage seconaidre si le serveur est complet -->
  154. <fallback-override></fallback-override> <!-- Activer ou pas le point de montage secondaire -->
  155. <fallback-when-full></fallback-when-full> <!-- Activer le renvoi vers le secondaire quand le premier est complet -->
  156. <hidden>1</hidden> <!-- Cacher le serveur-->
  157. <no-yp>1</no-yp> <!-- ??? -->
  158.  
  159. <on-connect></on-connect> <!-- Action quand la source se connecte -->
  160. <on-disconnect></on-disconnect> <!-- Action quand la source se connecte -->
  161. </mount>
  162.  
  163. <!-- Default settings for all mounts that don't have a specific <mount type="normal">.
  164. -->
  165. <!--
  166. <mount type="default">
  167. <public>0</public>
  168. <intro>/server-wide-intro.ogg</intro>
  169. <max-listener-duration>3600</max-listener-duration>
  170. <authentication type="url">
  171. <option name="mount_add" value="http://auth.example.org/stream_start.php"/>
  172. </authentication>
  173. <http-headers>
  174. <header name="foo" value="bar" />
  175. </http-headers>
  176. </mount>
  177. -->
  178.  
  179. <!-- Normal mounts -->
  180. <!--
  181. <mount type="normal">
  182. <mount-name>/example-complex.ogg</mount-name>
  183.  
  184. <username>othersource</username>
  185. <password>hackmemore</password>
  186.  
  187. <max-listeners>1</max-listeners>
  188. <dump-file>/tmp/dump-example1.ogg</dump-file>
  189. <burst-size>65536</burst-size>
  190. <fallback-mount>/example2.ogg</fallback-mount>
  191. <fallback-override>1</fallback-override>
  192. <fallback-when-full>1</fallback-when-full>
  193. <intro>/example_intro.ogg</intro>
  194. <hidden>1</hidden>
  195. <public>1</public>
  196. <authentication type="htpasswd">
  197. <option name="filename" value="myauth"/>
  198. <option name="allow_duplicate_users" value="0"/>
  199. </authentication>
  200. <http-headers>
  201. <header name="Access-Control-Allow-Origin" value="http://webplayer.example.org" />
  202. <header name="baz" value="quux" />
  203. </http-headers>
  204. </mount>
  205. -->
  206.  
  207. <!--
  208. <mount type="normal">
  209. <mount-name>/auth_example.ogg</mount-name>
  210. <authentication type="url">
  211. <option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
  212. <option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
  213. <option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
  214. <option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
  215. <option name="headers" value="x-pragma,x-token"/>
  216. <option name="header_prefix" value="ClientHeader."/>
  217. </authentication>
  218. </mount>
  219. -->
  220.  
  221. <fileserve>1</fileserve>
  222.  
  223. <paths>
  224. <logdir>c:/temp/log</logdir>
  225. <webroot>./web</webroot>
  226. <adminroot>./admin</adminroot>
  227.  
  228. <!-- Aliases: treat requests for 'source' path as being for 'dest' path
  229. May be made specific to a port or bound address using the "port"
  230. and "bind-address" attributes.
  231. -->
  232. <!--
  233. <alias source="/foo" destination="/bar"/>
  234. -->
  235. <!-- Aliases: can also be used for simple redirections as well,
  236. this example will redirect all requests for http://server:port/ to
  237. the status page
  238. -->
  239. <alias source="/" destination="/status.xsl"/>
  240. <!-- The certificate file needs to contain both public and private part.
  241. Both should be PEM encoded.
  242. <ssl-certificate>./icecast.pem</ssl-certificate>
  243. -->
  244. </paths>
  245.  
  246. <logging>
  247. <accesslog>access.log</accesslog>
  248. <errorlog>error.log</errorlog>
  249. <!-- <playlistlog>playlist.log</playlistlog> -->
  250. <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
  251. <logsize>10000</logsize> <!-- Max size of a logfile -->
  252. <!-- If logarchive is enabled (1), then when logsize is reached
  253. the logfile will be moved to [error|access|playlist].log.DATESTAMP,
  254. otherwise it will be moved to [error|access|playlist].log.old.
  255. Default is non-archive mode (i.e. overwrite)
  256. -->
  257. <!-- <logarchive>1</logarchive> -->
  258. </logging>
  259. </icecast>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement