mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Update default config, SSL, headers, default-mount
svn path=/icecast/trunk/icecast/; revision=19297
This commit is contained in:
parent
7ecf0b04da
commit
58fdef4856
@ -5,6 +5,13 @@
|
|||||||
<location>Earth</location>
|
<location>Earth</location>
|
||||||
<admin>icemaster@localhost</admin>
|
<admin>icemaster@localhost</admin>
|
||||||
|
|
||||||
|
<!-- IMPORTANT!
|
||||||
|
Especially for inexperienced users:
|
||||||
|
Start out by ONLY changing all passwords and restarting Icecast.
|
||||||
|
For detailed setup instructions please refer to the documentation.
|
||||||
|
It's also available here: http://icecast.org/docs/
|
||||||
|
-->
|
||||||
|
|
||||||
<limits>
|
<limits>
|
||||||
<clients>100</clients>
|
<clients>100</clients>
|
||||||
<sources>2</sources>
|
<sources>2</sources>
|
||||||
@ -28,7 +35,7 @@
|
|||||||
<authentication>
|
<authentication>
|
||||||
<!-- Sources log in with username 'source' -->
|
<!-- Sources log in with username 'source' -->
|
||||||
<source-password>hackme</source-password>
|
<source-password>hackme</source-password>
|
||||||
<!-- Relays log in username 'relay' -->
|
<!-- Relays log in with username 'relay' -->
|
||||||
<relay-password>hackme</relay-password>
|
<relay-password>hackme</relay-password>
|
||||||
|
|
||||||
<!-- Admin logs in with the username given below -->
|
<!-- Admin logs in with the username given below -->
|
||||||
@ -52,7 +59,8 @@
|
|||||||
|
|
||||||
<!-- This is the hostname other people will use to connect to your server.
|
<!-- 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
|
It affects mainly the urls generated by Icecast for playlists and yp
|
||||||
listings. -->
|
listings. You MUST configure it properly for YP listings to work!
|
||||||
|
-->
|
||||||
<hostname>localhost</hostname>
|
<hostname>localhost</hostname>
|
||||||
|
|
||||||
<!-- You may have multiple <listener> elements -->
|
<!-- You may have multiple <listener> elements -->
|
||||||
@ -63,10 +71,34 @@
|
|||||||
</listen-socket>
|
</listen-socket>
|
||||||
<!--
|
<!--
|
||||||
<listen-socket>
|
<listen-socket>
|
||||||
<port>8001</port>
|
<port>8080</port>
|
||||||
|
</listen-socket>
|
||||||
|
-->
|
||||||
|
<!--
|
||||||
|
<listen-socket>
|
||||||
|
<port>8443</port>
|
||||||
|
<ssl>1</ssl>
|
||||||
</listen-socket>
|
</listen-socket>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Global header settings
|
||||||
|
Headers defined here will be returned for every HTTP request to Icecast.
|
||||||
|
-->
|
||||||
|
<http-headers>
|
||||||
|
<!-- Make 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.
|
||||||
|
If you don't want this, comment out the following line or read up on CORS.
|
||||||
|
-->
|
||||||
|
<header name="Access-Control-Allow-Origin" value="*" />
|
||||||
|
</http-headers>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Relaying
|
||||||
|
You don't need this if you only have one server.
|
||||||
|
Please refer to the config for a detailed explanation.
|
||||||
|
-->
|
||||||
<!--<master-server>127.0.0.1</master-server>-->
|
<!--<master-server>127.0.0.1</master-server>-->
|
||||||
<!--<master-server-port>8001</master-server-port>-->
|
<!--<master-server-port>8001</master-server-port>-->
|
||||||
<!--<master-update-interval>120</master-update-interval>-->
|
<!--<master-update-interval>120</master-update-interval>-->
|
||||||
@ -80,7 +112,7 @@
|
|||||||
<!--
|
<!--
|
||||||
<relay>
|
<relay>
|
||||||
<server>127.0.0.1</server>
|
<server>127.0.0.1</server>
|
||||||
<port>8001</port>
|
<port>8080</port>
|
||||||
<mount>/example.ogg</mount>
|
<mount>/example.ogg</mount>
|
||||||
<local-mount>/different.ogg</local-mount>
|
<local-mount>/different.ogg</local-mount>
|
||||||
<on-demand>0</on-demand>
|
<on-demand>0</on-demand>
|
||||||
@ -89,12 +121,31 @@
|
|||||||
</relay>
|
</relay>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- Only define a <mount> section if you want to use advanced options,
|
|
||||||
|
<!-- Mountpoints
|
||||||
|
Only define <mount> sections if you want to use advanced options,
|
||||||
like alternative usernames or passwords
|
like alternative usernames or passwords
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
<!-- Default settings for all mounts that don't have a specific <mount type="normal">.
|
||||||
|
-->
|
||||||
<!--
|
<!--
|
||||||
<mount>
|
<mount type="default">
|
||||||
|
<public>0</public>
|
||||||
|
<intro>/server-wide-intro.ogg</intro>
|
||||||
|
<max-listener-duration>3600</max-listener-duration>
|
||||||
|
<authentication type="url">
|
||||||
|
<option name="mount_add" value="http://auth.example.org/stream_start.php"/>
|
||||||
|
</authentication>
|
||||||
|
<http-headers>
|
||||||
|
<header name="foo" value="bar" />
|
||||||
|
</http-headers>
|
||||||
|
</mount>
|
||||||
|
-->
|
||||||
|
|
||||||
|
<!-- Normal mounts -->
|
||||||
|
<!--
|
||||||
|
<mount type="normal">
|
||||||
<mount-name>/example-complex.ogg</mount-name>
|
<mount-name>/example-complex.ogg</mount-name>
|
||||||
|
|
||||||
<username>othersource</username>
|
<username>othersource</username>
|
||||||
@ -108,18 +159,22 @@
|
|||||||
<fallback-when-full>1</fallback-when-full>
|
<fallback-when-full>1</fallback-when-full>
|
||||||
<intro>/example_intro.ogg</intro>
|
<intro>/example_intro.ogg</intro>
|
||||||
<hidden>1</hidden>
|
<hidden>1</hidden>
|
||||||
<no-yp>1</no-yp>
|
<public>1</public>
|
||||||
<authentication type="htpasswd">
|
<authentication type="htpasswd">
|
||||||
<option name="filename" value="myauth"/>
|
<option name="filename" value="myauth"/>
|
||||||
<option name="allow_duplicate_users" value="0"/>
|
<option name="allow_duplicate_users" value="0"/>
|
||||||
</authentication>
|
</authentication>
|
||||||
|
<http-headers>
|
||||||
|
<header name="Access-Control-Allow-Origin" value="http://webplayer.example.org" />
|
||||||
|
<header name="baz" value="quux" />
|
||||||
|
</http-headers>
|
||||||
<on-connect>/home/icecast/bin/stream-start</on-connect>
|
<on-connect>/home/icecast/bin/stream-start</on-connect>
|
||||||
<on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
|
<on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
|
||||||
</mount>
|
</mount>
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
<mount>
|
<mount type="normal">
|
||||||
<mount-name>/auth_example.ogg</mount-name>
|
<mount-name>/auth_example.ogg</mount-name>
|
||||||
<authentication type="url">
|
<authentication type="url">
|
||||||
<option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
|
<option name="mount_add" value="http://myauthserver.net/notify_mount.php"/>
|
||||||
@ -157,6 +212,10 @@
|
|||||||
the status page
|
the status page
|
||||||
-->
|
-->
|
||||||
<alias source="/" destination="/status.xsl"/>
|
<alias source="/" destination="/status.xsl"/>
|
||||||
|
<!-- The certificate file needs to contain both public and private part.
|
||||||
|
Both should be PEM encoded.
|
||||||
|
<ssl-certificate>@pkgdatadir@/icecast.pem</ssl-certificate>
|
||||||
|
-->
|
||||||
</paths>
|
</paths>
|
||||||
|
|
||||||
<logging>
|
<logging>
|
||||||
|
Loading…
Reference in New Issue
Block a user