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>
|
2018-09-28 06:23:12 -04:00
|
|
|
<!-- This is the hostname other people will use to connect to your server.
|
|
|
|
It affects mainly the urls generated by Icecast for playlists and YP
|
|
|
|
listings. You MUST configure it properly for YP listings to work!
|
|
|
|
This is NOT your homepage address, it's the hostname for THIS server.
|
|
|
|
-->
|
|
|
|
<hostname>localhost</hostname>
|
2015-02-18 01:30:30 -05:00
|
|
|
|
2003-06-03 21:40:06 -04:00
|
|
|
<limits>
|
2018-09-28 06:23:12 -04:00
|
|
|
<!-- Global maximum number of clients.
|
|
|
|
This includes all kinds of clients, not only listeners.
|
|
|
|
-->
|
2003-06-03 21:40:06 -04:00
|
|
|
<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>
|
2018-09-28 06:23:12 -04:00
|
|
|
<!-- This sets the burst size in [bytes]. This is the amount the
|
|
|
|
the server sends to a listener that connects to a stream.
|
|
|
|
This allows for a significantly reducing in startup time.
|
|
|
|
Most people won't need to change from the default 64k.
|
|
|
|
Applies to all mountpoints.
|
|
|
|
-->
|
2004-08-22 11:00:35 -04:00
|
|
|
<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
|
|
|
|
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>
|
2018-09-28 06:59:09 -04:00
|
|
|
<tls>auto_no_plain</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
|
|
|
-->
|
2018-09-28 06:23:12 -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.
|
2018-09-28 06:59:09 -04:00
|
|
|
The default is false -->
|
|
|
|
<!--<relays-on-demand>true</relays-on-demand>-->
|
2005-06-09 11:44:38 -04:00
|
|
|
|
2018-09-28 07:15:39 -04:00
|
|
|
<!-- Basic relay with one upstream server -->
|
2003-02-07 05:53:38 -05:00
|
|
|
<!--
|
|
|
|
<relay>
|
2003-06-03 21:40:06 -04:00
|
|
|
<local-mount>/different.ogg</local-mount>
|
2018-09-28 06:59:09 -04:00
|
|
|
<on-demand>false</on-demand>
|
2003-02-24 08:37:15 -05:00
|
|
|
|
2018-09-28 07:15:39 -04:00
|
|
|
<upstream type="normal">
|
|
|
|
<server>127.0.0.1</server>
|
|
|
|
<port>8080</port>
|
|
|
|
<mount>/example.ogg</mount>
|
|
|
|
<relay-shoutcast-metadata>false</relay-shoutcast-metadata>
|
|
|
|
</upstream>
|
2003-02-07 05:53:38 -05:00
|
|
|
</relay>
|
|
|
|
-->
|
2002-08-05 10:48:04 -04:00
|
|
|
|
2018-09-28 07:15:39 -04:00
|
|
|
<!-- Relay with multiple upstream servers and default settings -->
|
|
|
|
<!--
|
|
|
|
<relay>
|
|
|
|
<local-mount>/different.ogg</local-mount>
|
|
|
|
<on-demand>false</on-demand>
|
|
|
|
|
|
|
|
<upstream type="normal">
|
|
|
|
<server>master0.example.org</server>
|
|
|
|
</upstream>
|
|
|
|
<upstream type="normal">
|
|
|
|
<server>master1.example.org</server>
|
|
|
|
</upstream>
|
|
|
|
<upstream type="normal">
|
|
|
|
<server>master2.example.org</server>
|
|
|
|
<port>8080</port>
|
|
|
|
</upstream>
|
|
|
|
<upstream type="default">
|
|
|
|
<port>8000</port>
|
|
|
|
<mount>/example.ogg</mount>
|
|
|
|
</upstream>
|
|
|
|
</relay>
|
|
|
|
-->
|
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,
|
2018-09-28 06:23:12 -04:00
|
|
|
to activate them remove the comment markers around them and reload.
|
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">
|
2018-09-28 06:59:09 -04:00
|
|
|
<public>false</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>
|
2018-09-28 08:52:11 -04:00
|
|
|
<authentication>
|
2018-09-28 09:01:36 -04:00
|
|
|
<role type="url" match-method="source,put" allow-web="*" allow-admin="*">
|
2018-09-28 08:52:11 -04:00
|
|
|
<option name="client_add" value="http://auth.example.org/stream_start.php"/>
|
|
|
|
</role>
|
2018-09-28 09:01:36 -04:00
|
|
|
<role type="anonymous" match-method="source,put" deny-all="*" />
|
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
|
|
|
<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>
|
2018-09-28 06:59:09 -04:00
|
|
|
<fallback-override>true</fallback-override>
|
|
|
|
<fallback-when-full>true</fallback-when-full>
|
2005-06-09 11:44:38 -04:00
|
|
|
<intro>/example_intro.ogg</intro>
|
2018-09-28 06:59:09 -04:00
|
|
|
<hidden>true</hidden>
|
|
|
|
<public>true</public>
|
2018-09-28 08:52:11 -04:00
|
|
|
<authentication>
|
|
|
|
<role type="htpasswd" connections-per-user="1">
|
|
|
|
<option name="filename" value="myauth" />
|
|
|
|
</role>
|
|
|
|
<role type="static" allow-method="source,put,get,post,options" deny-web="*" allow-admin="*">
|
|
|
|
<option name="username" value="othersource" />
|
|
|
|
<option name="passwod" value="hackmemore" />
|
|
|
|
</role>
|
|
|
|
<role type="anonymous" deny-all="*" />
|
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>
|
2018-09-28 08:31:07 -04:00
|
|
|
|
|
|
|
<event-bindings>
|
|
|
|
<event type="exec" trigger="source-connect">
|
|
|
|
<option name="executable" value="/home/icecast/bin/stream-start" />
|
|
|
|
</event>
|
|
|
|
<event type="exec" trigger="source-disconnect">
|
|
|
|
<option name="executable" value="/home/icecast/bin/stream-stop" />
|
|
|
|
</event>
|
|
|
|
</event-bindings>
|
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>
|
2018-09-28 08:52:11 -04:00
|
|
|
<authentication>
|
2018-09-28 09:01:36 -04:00
|
|
|
<role type="url" match-method="get,post,head,options" allow-web="*" deny-admin="*" may-alter="send_error,redirect">
|
2018-09-28 08:52:11 -04:00
|
|
|
<option name="client_add" value="http://myauthserver.net/notify_listener.php"/>
|
|
|
|
<option name="client_remove" value="http://myauthserver.net/notify_listener.php"/>
|
|
|
|
<option name="action_add" value="listener_add"/>
|
|
|
|
<option name="action_remove" value="listener_remove"/>
|
|
|
|
<option name="headers" value="x-pragma,x-token"/>
|
|
|
|
<option name="header_prefix" value="ClientHeader."/>
|
|
|
|
</role>
|
2018-09-28 09:01:36 -04:00
|
|
|
<role type="anonymous" match-method="get,post,head,options" deny-all="*" />
|
2005-08-17 12:38:46 -04:00
|
|
|
</authentication>
|
2018-09-28 08:52:11 -04:00
|
|
|
<event-bindings>
|
|
|
|
<event type="url" trigger="source-connect">
|
|
|
|
<option name="url" value="http://myauthserver.net/notify_mount.php" />
|
|
|
|
<option name="action" value="mount_add" />
|
|
|
|
</event>
|
|
|
|
<event type="url" trigger="source-disconnect">
|
|
|
|
<option name="url" value="http://myauthserver.net/notify_mount.php" />
|
|
|
|
<option name="action" value="mount_remove" />
|
|
|
|
</event>
|
|
|
|
</event-bindings>
|
2005-08-17 12:38:46 -04:00
|
|
|
</mount>
|
2004-01-08 09:16:26 -05:00
|
|
|
-->
|
2003-02-11 09:23:34 -05:00
|
|
|
|
2018-09-28 07:15:39 -04:00
|
|
|
<!-- Relays can also go into a <mount type="normal"> section -->
|
|
|
|
<!--
|
|
|
|
<mount type="normal">
|
2018-09-28 09:31:03 -04:00
|
|
|
<mount-name>/relay_example.ogg</mount-name>
|
2018-09-28 07:15:39 -04:00
|
|
|
<relay>
|
|
|
|
<upstream type="normal">
|
|
|
|
<server>master0.example.org</server>
|
|
|
|
<port>8000</port>
|
|
|
|
<mount>/example.ogg</mount>
|
|
|
|
</upstream>
|
|
|
|
</relay>
|
|
|
|
</mount>
|
|
|
|
-->
|
|
|
|
|
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> -->
|
2018-09-28 06:59:09 -04:00
|
|
|
<loglevel>information</loglevel> <!-- "debug", "information", "warning", or "error" -->
|
2014-11-10 03:20:30 -05:00
|
|
|
<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)
|
|
|
|
-->
|
2018-09-28 06:59:09 -04:00
|
|
|
<!-- <logarchive>true</logarchive> -->
|
2003-06-03 21:40:06 -04:00
|
|
|
</logging>
|
|
|
|
|
|
|
|
<security>
|
2018-09-28 06:59:09 -04:00
|
|
|
<chroot>false</chroot>
|
2003-06-03 21:40:06 -04:00
|
|
|
<!--
|
|
|
|
<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>
|