2001-09-09 22:21:46 -04:00
|
|
|
<icecast>
|
2014-11-10 01:25:15 -05:00
|
|
|
<!-- IMPORTANT!
|
2014-11-10 03:20:30 -05:00
|
|
|
Especially for inexperienced users:
|
|
|
|
Start out by ONLY changing all passwords and restarting Icecast.
|
2014-11-10 01:25:15 -05:00
|
|
|
For detailed setup instructions please refer to the documentation.
|
|
|
|
It's also available here: http://icecast.org/docs/
|
|
|
|
-->
|
|
|
|
|
2015-02-18 01:30:30 -05:00
|
|
|
<!-- location and admin are two strings that are e.g. visible
|
2018-09-28 05:36:58 -04:00
|
|
|
on the server info page of the icecast web interface -->
|
2015-02-18 01:30:30 -05:00
|
|
|
<location>Earth</location>
|
|
|
|
<!-- If you are listing streams on a YP, this MUST be a working email! -->
|
|
|
|
<admin>icemaster@localhost</admin>
|
|
|
|
|
2003-06-03 21:40:06 -04:00
|
|
|
<limits>
|
|
|
|
<clients>100</clients>
|
|
|
|
<sources>2</sources>
|
2005-06-09 11:32:19 -04:00
|
|
|
<queue-size>524288</queue-size>
|
2003-06-03 21:40:06 -04:00
|
|
|
<client-timeout>30</client-timeout>
|
|
|
|
<header-timeout>15</header-timeout>
|
|
|
|
<source-timeout>10</source-timeout>
|
2014-11-29 06:39:39 -05:00
|
|
|
<!-- If enabled, this will provide a burst of data when a client
|
|
|
|
first connects, thereby significantly reducing the startup
|
2004-04-29 22:28:58 -04:00
|
|
|
time for listeners that do substantial buffering. However,
|
2004-07-22 09:38:20 -04:00
|
|
|
it also significantly increases latency between the source
|
|
|
|
client and listening client. For low-latency setups, you
|
|
|
|
might want to disable this. -->
|
|
|
|
<burst-on-connect>1</burst-on-connect>
|
2004-08-22 11:00:35 -04:00
|
|
|
<!-- same as burst-on-connect, but this allows for being more
|
|
|
|
specific on how much to burst. Most people won't need to
|
|
|
|
change from the default 64k. Applies to all mountpoints -->
|
|
|
|
<burst-size>65535</burst-size>
|
2003-06-03 21:40:06 -04:00
|
|
|
</limits>
|
2001-09-09 22:21:46 -04:00
|
|
|
|
2003-02-06 08:10:48 -05:00
|
|
|
<authentication>
|
|
|
|
<!-- Sources log in with username 'source' -->
|
2003-06-03 21:40:06 -04:00
|
|
|
<source-password>hackme</source-password>
|
2014-11-10 01:25:15 -05:00
|
|
|
<!-- Relays log in with username 'relay' -->
|
2003-06-03 21:40:06 -04:00
|
|
|
<relay-password>hackme</relay-password>
|
2003-02-06 08:10:48 -05:00
|
|
|
|
|
|
|
<!-- Admin logs in with the username given below -->
|
|
|
|
<admin-user>admin</admin-user>
|
|
|
|
<admin-password>hackme</admin-password>
|
|
|
|
</authentication>
|
|
|
|
|
2008-04-18 22:04:17 -04:00
|
|
|
<!-- set the mountpoint for a shoutcast source to use, the default if not
|
2015-09-10 10:53:44 -04:00
|
|
|
specified is to have none.
|
2008-04-18 22:04:17 -04:00
|
|
|
<shoutcast-mount>/live.nsv</shoutcast-mount>
|
|
|
|
-->
|
|
|
|
|
2015-01-13 03:25:37 -05:00
|
|
|
<!-- Uncommenting this enables publishing to the streaming directory at:
|
2018-09-28 05:36:58 -04:00
|
|
|
http://dir.xiph.org/
|
2015-01-13 03:25:37 -05:00
|
|
|
Please read the Icecast documentation about publishing to directories
|
|
|
|
very carefully, as it is not enough to just uncomment this.
|
|
|
|
-->
|
2003-02-06 08:10:48 -05:00
|
|
|
<!--
|
2003-10-31 14:16:12 -05:00
|
|
|
<directory>
|
|
|
|
<yp-url-timeout>15</yp-url-timeout>
|
|
|
|
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
|
2003-02-06 08:10:48 -05:00
|
|
|
</directory>
|
2014-11-10 01:25:15 -05:00
|
|
|
-->
|
2001-09-09 22:21:46 -04:00
|
|
|
|
2004-04-28 16:58:47 -04:00
|
|
|
<!-- This is the hostname other people will use to connect to your server.
|
2015-02-18 01:30:30 -05:00
|
|
|
It affects mainly the urls generated by Icecast for playlists and YP
|
2014-11-10 01:25:15 -05:00
|
|
|
listings. You MUST configure it properly for YP listings to work!
|
2015-02-18 01:30:30 -05:00
|
|
|
This is NOT your homepage address, it's the hostname for THIS server.
|
2014-11-10 01:25:15 -05:00
|
|
|
-->
|
2003-06-03 21:40:06 -04:00
|
|
|
<hostname>localhost</hostname>
|
2001-09-09 22:21:46 -04:00
|
|
|
|
2015-08-31 16:31:31 -04:00
|
|
|
<!-- You may have multiple <listen-socket> elements -->
|
2003-03-09 06:27:06 -05:00
|
|
|
<listen-socket>
|
|
|
|
<port>8000</port>
|
|
|
|
<!-- <bind-address>127.0.0.1</bind-address> -->
|
2008-02-02 22:11:54 -05:00
|
|
|
<!-- <shoutcast-mount>/stream</shoutcast-mount> -->
|
2003-03-09 06:27:06 -05:00
|
|
|
</listen-socket>
|
|
|
|
<!--
|
|
|
|
<listen-socket>
|
2014-11-10 01:25:15 -05:00
|
|
|
<port>8080</port>
|
2003-03-09 06:27:06 -05:00
|
|
|
</listen-socket>
|
|
|
|
-->
|
2014-11-10 01:25:15 -05:00
|
|
|
<!--
|
|
|
|
<listen-socket>
|
|
|
|
<port>8443</port>
|
2015-03-27 07:08:50 -04:00
|
|
|
<tls>1</tls>
|
2014-11-10 01:25:15 -05:00
|
|
|
</listen-socket>
|
|
|
|
-->
|
|
|
|
|
2003-03-09 06:27:06 -05:00
|
|
|
|
2014-11-29 06:39:39 -05:00
|
|
|
<!-- Global header settings
|
2014-11-10 01:25:15 -05:00
|
|
|
Headers defined here will be returned for every HTTP request to Icecast.
|
2014-11-18 03:51:03 -05:00
|
|
|
|
|
|
|
The ACAO header makes Icecast public content/API by default
|
|
|
|
This will make streams easier embeddable (some HTML5 functionality needs it).
|
|
|
|
Also it allows direct access to e.g. /status-json.xsl from other sites.
|
2014-11-29 06:39:39 -05:00
|
|
|
If you don't want this, comment out the following line or read up on CORS.
|
2014-11-10 01:25:15 -05:00
|
|
|
-->
|
|
|
|
<http-headers>
|
|
|
|
<header name="Access-Control-Allow-Origin" value="*" />
|
|
|
|
</http-headers>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Relaying
|
|
|
|
You don't need this if you only have one server.
|
2015-08-31 16:31:31 -04:00
|
|
|
Please refer to the documentation for a detailed explanation.
|
2014-11-10 01:25:15 -05:00
|
|
|
-->
|
2003-06-03 21:40:06 -04:00
|
|
|
<!--<master-server>127.0.0.1</master-server>-->
|
|
|
|
<!--<master-server-port>8001</master-server-port>-->
|
|
|
|
<!--<master-update-interval>120</master-update-interval>-->
|
|
|
|
<!--<master-password>hackme</master-password>-->
|
2005-06-09 11:44:38 -04:00
|
|
|
|
2015-02-18 01:30:30 -05:00
|
|
|
<!-- Setting this makes all relays on-demand unless overridden, this is
|
2005-06-09 11:44:38 -04:00
|
|
|
useful for master relays which do not have <relay> definitions here.
|
|
|
|
The default is 0 -->
|
|
|
|
<!--<relays-on-demand>1</relays-on-demand>-->
|
|
|
|
|
2003-02-07 05:53:38 -05:00
|
|
|
<!--
|
|
|
|
<relay>
|
2003-06-03 21:40:06 -04:00
|
|
|
<server>127.0.0.1</server>
|
2014-11-10 01:25:15 -05:00
|
|
|
<port>8080</port>
|
2003-06-03 21:40:06 -04:00
|
|
|
<mount>/example.ogg</mount>
|
|
|
|
<local-mount>/different.ogg</local-mount>
|
2005-06-09 11:44:38 -04:00
|
|
|
<on-demand>0</on-demand>
|
2003-02-24 08:37:15 -05:00
|
|
|
|
2003-06-03 21:40:06 -04:00
|
|
|
<relay-shoutcast-metadata>0</relay-shoutcast-metadata>
|
2003-02-07 05:53:38 -05:00
|
|
|
</relay>
|
|
|
|
-->
|
2002-08-05 10:48:04 -04:00
|
|
|
|
2014-11-10 01:25:15 -05:00
|
|
|
|
|
|
|
<!-- Mountpoints
|
|
|
|
Only define <mount> sections if you want to use advanced options,
|
2018-09-28 05:36:58 -04:00
|
|
|
like alternative usernames or passwords
|
2015-02-18 01:30:30 -05:00
|
|
|
All <mount> sections below are disabled by default,
|
|
|
|
to activate them remove the comment markers around them and restart.
|
2014-11-09 04:13:59 -05:00
|
|
|
-->
|
|
|
|
|
2014-11-10 01:25:15 -05:00
|
|
|
<!-- Default settings for all mounts that don't have a specific <mount type="normal">.
|
|
|
|
-->
|
2014-11-29 06:39:39 -05:00
|
|
|
<!--
|
2014-11-10 01:25:15 -05:00
|
|
|
<mount type="default">
|
|
|
|
<public>0</public>
|
2014-11-10 03:20:30 -05:00
|
|
|
<intro>/server-wide-intro.ogg</intro>
|
2014-11-10 01:25:15 -05:00
|
|
|
<max-listener-duration>3600</max-listener-duration>
|
2014-11-10 03:20:30 -05:00
|
|
|
<authentication type="url">
|
2014-11-10 01:25:15 -05:00
|
|
|
<option name="mount_add" value="http://auth.example.org/stream_start.php"/>
|
2014-11-10 03:20:30 -05:00
|
|
|
</authentication>
|
2014-11-10 01:25:15 -05:00
|
|
|
<http-headers>
|
|
|
|
<header name="foo" value="bar" />
|
2014-11-10 03:20:30 -05:00
|
|
|
</http-headers>
|
2014-11-10 01:25:15 -05:00
|
|
|
</mount>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!-- Normal mounts -->
|
2014-11-09 04:13:59 -05:00
|
|
|
<!--
|
2014-11-10 01:25:15 -05:00
|
|
|
<mount type="normal">
|
2003-04-25 04:38:47 -04:00
|
|
|
<mount-name>/example-complex.ogg</mount-name>
|
2003-03-02 05:18:28 -05:00
|
|
|
|
2003-02-11 09:23:34 -05:00
|
|
|
<username>othersource</username>
|
|
|
|
<password>hackmemore</password>
|
|
|
|
|
|
|
|
<max-listeners>1</max-listeners>
|
2004-01-08 09:16:26 -05:00
|
|
|
<dump-file>/tmp/dump-example1.ogg</dump-file>
|
2004-08-22 11:00:35 -04:00
|
|
|
<burst-size>65536</burst-size>
|
2003-02-11 09:23:34 -05:00
|
|
|
<fallback-mount>/example2.ogg</fallback-mount>
|
2004-11-19 21:16:59 -05:00
|
|
|
<fallback-override>1</fallback-override>
|
2005-08-23 14:40:20 -04:00
|
|
|
<fallback-when-full>1</fallback-when-full>
|
2005-06-09 11:44:38 -04:00
|
|
|
<intro>/example_intro.ogg</intro>
|
2004-11-22 13:21:48 -05:00
|
|
|
<hidden>1</hidden>
|
2014-11-10 01:25:15 -05:00
|
|
|
<public>1</public>
|
2004-04-30 10:36:07 -04:00
|
|
|
<authentication type="htpasswd">
|
|
|
|
<option name="filename" value="myauth"/>
|
2004-05-17 00:33:46 -04:00
|
|
|
<option name="allow_duplicate_users" value="0"/>
|
2004-04-30 10:36:07 -04:00
|
|
|
</authentication>
|
2014-11-10 01:25:15 -05:00
|
|
|
<http-headers>
|
2014-11-10 03:20:30 -05:00
|
|
|
<header name="Access-Control-Allow-Origin" value="http://webplayer.example.org" />
|
2014-11-10 01:25:15 -05:00
|
|
|
<header name="baz" value="quux" />
|
2014-11-10 03:20:30 -05:00
|
|
|
</http-headers>
|
2005-06-09 20:37:09 -04:00
|
|
|
<on-connect>/home/icecast/bin/stream-start</on-connect>
|
|
|
|
<on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
|
2003-02-11 09:23:34 -05:00
|
|
|
</mount>
|
2014-11-09 04:13:59 -05:00
|
|
|
-->
|
2005-08-17 12:38:46 -04:00
|
|
|
|
2014-11-09 04:13:59 -05:00
|
|
|
<!--
|
2014-11-10 01:25:15 -05:00
|
|
|
<mount type="normal">
|
2005-08-17 12:38:46 -04:00
|
|
|
<mount-name>/auth_example.ogg</mount-name>
|
|
|
|
<authentication type="url">
|
|
|
|
<option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
|
|
|
|
<option name="mount_remove" value="http://myauthserver.net/notify_mount.php"/>
|
|
|
|
<option name="listener_add" value="http://myauthserver.net/notify_listener.php"/>
|
|
|
|
<option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
|
2012-10-11 14:06:30 -04:00
|
|
|
<option name="headers" value="x-pragma,x-token"/>
|
|
|
|
<option name="header_prefix" value="ClientHeader."/>
|
2005-08-17 12:38:46 -04:00
|
|
|
</authentication>
|
|
|
|
</mount>
|
2004-01-08 09:16:26 -05:00
|
|
|
-->
|
2003-02-11 09:23:34 -05:00
|
|
|
|
2003-06-03 21:40:06 -04:00
|
|
|
<fileserve>1</fileserve>
|
2002-08-18 01:06:58 -04:00
|
|
|
|
2003-06-03 21:40:06 -04:00
|
|
|
<paths>
|
2014-11-09 04:13:59 -05:00
|
|
|
<!-- basedir is only used if chroot is enabled -->
|
2003-06-17 17:10:56 -04:00
|
|
|
<basedir>@pkgdatadir@</basedir>
|
2003-03-02 05:18:28 -05:00
|
|
|
|
2015-02-18 01:30:30 -05:00
|
|
|
<!-- Note that if <chroot> is turned on below, these paths must all
|
2003-03-02 05:18:28 -05:00
|
|
|
be relative to the new root, not the original root -->
|
2003-06-20 00:01:31 -04:00
|
|
|
<logdir>@localstatedir@/log/@PACKAGE@</logdir>
|
2003-06-17 17:10:56 -04:00
|
|
|
<webroot>@pkgdatadir@/web</webroot>
|
|
|
|
<adminroot>@pkgdatadir@/admin</adminroot>
|
2003-12-04 11:54:48 -05:00
|
|
|
<!-- <pidfile>@pkgdatadir@/icecast.pid</pidfile> -->
|
2003-04-23 08:44:29 -04:00
|
|
|
|
|
|
|
<!-- Aliases: treat requests for 'source' path as being for 'dest' path
|
|
|
|
May be made specific to a port or bound address using the "port"
|
|
|
|
and "bind-address" attributes.
|
|
|
|
-->
|
|
|
|
<!--
|
2011-11-25 17:22:48 -05:00
|
|
|
<alias source="/foo" destination="/bar"/>
|
2014-11-10 01:25:15 -05:00
|
|
|
-->
|
2004-05-03 11:00:18 -04:00
|
|
|
<!-- Aliases: can also be used for simple redirections as well,
|
|
|
|
this example will redirect all requests for http://server:port/ to
|
|
|
|
the status page
|
2014-11-10 01:25:15 -05:00
|
|
|
-->
|
2014-11-10 03:20:30 -05:00
|
|
|
<alias source="/" destination="/status.xsl"/>
|
|
|
|
<!-- The certificate file needs to contain both public and private part.
|
2014-11-10 01:25:15 -05:00
|
|
|
Both should be PEM encoded.
|
2015-03-27 07:08:50 -04:00
|
|
|
<tls-certificate>@pkgdatadir@/icecast.pem</tls-certificate>
|
2014-11-10 01:25:15 -05:00
|
|
|
-->
|
2003-06-03 21:40:06 -04:00
|
|
|
</paths>
|
2001-09-09 22:21:46 -04:00
|
|
|
|
2003-06-03 21:40:06 -04:00
|
|
|
<logging>
|
|
|
|
<accesslog>access.log</accesslog>
|
|
|
|
<errorlog>error.log</errorlog>
|
2004-11-15 23:04:02 -05:00
|
|
|
<!-- <playlistlog>playlist.log</playlistlog> -->
|
2014-11-10 03:20:30 -05:00
|
|
|
<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
|
|
|
|
<logsize>10000</logsize> <!-- Max size of a logfile -->
|
2005-10-24 10:51:54 -04:00
|
|
|
<!-- If logarchive is enabled (1), then when logsize is reached
|
|
|
|
the logfile will be moved to [error|access|playlist].log.DATESTAMP,
|
|
|
|
otherwise it will be moved to [error|access|playlist].log.old.
|
|
|
|
Default is non-archive mode (i.e. overwrite)
|
|
|
|
-->
|
|
|
|
<!-- <logarchive>1</logarchive> -->
|
2003-06-03 21:40:06 -04:00
|
|
|
</logging>
|
|
|
|
|
|
|
|
<security>
|
|
|
|
<chroot>0</chroot>
|
|
|
|
<!--
|
|
|
|
<changeowner>
|
|
|
|
<user>nobody</user>
|
|
|
|
<group>nogroup</group>
|
2004-01-08 09:16:26 -05:00
|
|
|
</changeowner>
|
2003-06-03 21:40:06 -04:00
|
|
|
-->
|
|
|
|
</security>
|
2001-09-09 22:21:46 -04:00
|
|
|
</icecast>
|