icecast.xml.in 5.25 KB
Newer Older
Jack Moffitt's avatar
Jack Moffitt committed
1
<icecast>
2 3 4 5
    <limits>
        <clients>100</clients>
        <sources>2</sources>
        <threadpool>5</threadpool>
6
        <queue-size>102400</queue-size>
7 8 9
        <client-timeout>30</client-timeout>
        <header-timeout>15</header-timeout>
        <source-timeout>10</source-timeout>
10 11 12
        <!-- If enabled, this will provide a burst of data when a client 
             first connects, thereby significantly reducing the startup 
             time for listeners that do substantial buffering. However,
13 14 15 16
             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>
17 18 19 20
        <!-- 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>
21
    </limits>
Jack Moffitt's avatar
Jack Moffitt committed
22

23 24
    <authentication>
        <!-- Sources log in with username 'source' -->
25
        <source-password>hackme</source-password>
26
        <!-- Relays log in username 'relay' -->
27
        <relay-password>hackme</relay-password>
28 29 30 31 32 33 34 35

        <!-- Admin logs in with the username given below -->
        <admin-user>admin</admin-user>
        <admin-password>hackme</admin-password>
    </authentication>

    <!-- Uncomment this if you want directory listings -->
    <!--
36 37 38 39
    <directory>
        <yp-url-timeout>15</yp-url-timeout>
        <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
    </directory>
40
    <directory>
41
        <yp-url-timeout>15</yp-url-timeout>
42 43 44
        <yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
    </directory>
     -->
Jack Moffitt's avatar
Jack Moffitt committed
45

46 47 48
    <!-- 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. -->
49
    <hostname>localhost</hostname>
Jack Moffitt's avatar
Jack Moffitt committed
50

51
    <!-- You can use these two if you only want a single listener -->
52 53
    <!--<port>8000</port> -->
    <!--<bind-address>127.0.0.1</bind-address>-->
54 55 56 57 58 59 60 61 62 63 64 65

    <!-- You may have multiple <listener> elements -->
    <listen-socket>
        <port>8000</port>
        <!-- <bind-address>127.0.0.1</bind-address> -->
    </listen-socket>
    <!--
    <listen-socket>
        <port>8001</port>
    </listen-socket>
    -->

66 67 68 69
    <!--<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>-->
Michael Smith's avatar
Michael Smith committed
70 71
    <!--
    <relay>
72 73 74 75
        <server>127.0.0.1</server>
        <port>8001</port>
        <mount>/example.ogg</mount>
        <local-mount>/different.ogg</local-mount>
76

77
        <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
Michael Smith's avatar
Michael Smith committed
78 79
    </relay>
    -->
80

81 82
    <!-- Only define a <mount> section if you want to use advanced options,
         like alternative usernames or passwords
83
    <mount>
84
        <mount-name>/example-complex.ogg</mount-name>
85

86 87 88 89
        <username>othersource</username>
        <password>hackmemore</password>

        <max-listeners>1</max-listeners>
90
        <dump-file>/tmp/dump-example1.ogg</dump-file>
91
        <burst-size>65536</burst-size>
92
        <fallback-mount>/example2.ogg</fallback-mount>
Karl Heyes's avatar
Karl Heyes committed
93
        <fallback-override>1</fallback-override>
94
        <hidden>1</hidden>
Karl Heyes's avatar
Karl Heyes committed
95
        <no-yp>1</no-yp>
96 97
        <authentication type="htpasswd">
                <option name="filename" value="myauth"/>
98
                <option name="allow_duplicate_users" value="0"/>
99
        </authentication>
100
    </mount>
101
    -->
102

103
    <fileserve>1</fileserve>
104

105 106 107 108 109 110
    <!-- set the mountpoint for a shoutcast source to use, the default if not
         specified is /stream but you can change it here if an alternative is
         wanted or an extension is required
    <shoutcast-mount>/live.nsv</shoutcast-mount>
    -->

111
    <paths>
112
		<!-- basedir is only used if chroot is enabled -->
113
        <basedir>@pkgdatadir@</basedir>
114 115 116

        <!-- Note that if <chroot> is turned on below, these paths must both
             be relative to the new root, not the original root -->
117
        <logdir>@localstatedir@/log/@PACKAGE@</logdir>
118 119
        <webroot>@pkgdatadir@/web</webroot>
        <adminroot>@pkgdatadir@/admin</adminroot>
120
        <!-- <pidfile>@pkgdatadir@/icecast.pid</pidfile> -->
121 122 123 124 125 126 127 128

        <!-- 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.
          -->
        <!--
        <alias source="/foo" dest="/bar"/>
          -->
129 130 131 132 133
        <!-- Aliases: can also be used for simple redirections as well,
             this example will redirect all requests for http://server:port/ to
             the status page
          -->
        <alias source="/" dest="/status.xsl"/>
134
    </paths>
Jack Moffitt's avatar
Jack Moffitt committed
135

136 137 138
    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
139
        <!-- <playlistlog>playlist.log</playlistlog> -->
140
      	<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
141 142 143 144 145 146 147 148
    </logging>

    <security>
        <chroot>0</chroot>
        <!--
        <changeowner>
            <user>nobody</user>
            <group>nogroup</group>
149
        </changeowner>
150 151
        -->
    </security>
Jack Moffitt's avatar
Jack Moffitt committed
152
</icecast>