icecast.xml.in 4.05 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 13 14 15
        <!-- 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,
             it also significantly increases latency, so it's disabled
             by default -->
        <burst-on-connect>0</burst-on-connect>
16
    </limits>
Jack Moffitt's avatar
Jack Moffitt committed
17

18 19
    <authentication>
        <!-- Sources log in with username 'source' -->
20
        <source-password>hackme</source-password>
21
        <!-- Relays log in username 'relay' -->
22
        <relay-password>hackme</relay-password>
23 24 25 26 27 28 29 30

        <!-- 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 -->
    <!--
31 32 33 34
    <directory>
        <yp-url-timeout>15</yp-url-timeout>
        <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
    </directory>
35
    <directory>
36
        <yp-url-timeout>15</yp-url-timeout>
37 38 39
        <yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
    </directory>
     -->
Jack Moffitt's avatar
Jack Moffitt committed
40

41 42 43
    <!-- 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. -->
44
    <hostname>localhost</hostname>
Jack Moffitt's avatar
Jack Moffitt committed
45

46
    <!-- You can use these two if you only want a single listener -->
47 48
    <!--<port>8000</port> -->
    <!--<bind-address>127.0.0.1</bind-address>-->
49 50 51 52 53 54 55 56 57 58 59 60

    <!-- 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>
    -->

61 62 63 64
    <!--<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
65 66
    <!--
    <relay>
67 68 69 70
        <server>127.0.0.1</server>
        <port>8001</port>
        <mount>/example.ogg</mount>
        <local-mount>/different.ogg</local-mount>
71

72
        <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
Michael Smith's avatar
Michael Smith committed
73 74
    </relay>
    -->
75

76 77
    <!-- Only define a <mount> section if you want to use advanced options,
         like alternative usernames or passwords
78
    <mount>
79
        <mount-name>/example-complex.ogg</mount-name>
80

81 82 83 84
        <username>othersource</username>
        <password>hackmemore</password>

        <max-listeners>1</max-listeners>
85
        <dump-file>/tmp/dump-example1.ogg</dump-file>
86 87
        <fallback-mount>/example2.ogg</fallback-mount>
    </mount>
88
    -->
89

90
    <fileserve>1</fileserve>
91

92
    <paths>
93
		<!-- basedir is only used if chroot is enabled -->
94
        <basedir>@pkgdatadir@</basedir>
95 96 97

        <!-- Note that if <chroot> is turned on below, these paths must both
             be relative to the new root, not the original root -->
98
        <logdir>@localstatedir@/log/@PACKAGE@</logdir>
99 100
        <webroot>@pkgdatadir@/web</webroot>
        <adminroot>@pkgdatadir@/admin</adminroot>
101
        <!-- <pidfile>@pkgdatadir@/icecast.pid</pidfile> -->
102 103 104 105 106 107 108 109

        <!-- 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"/>
          -->
110
    </paths>
Jack Moffitt's avatar
Jack Moffitt committed
111

112 113 114
    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
115
      	<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
116 117 118 119 120 121 122 123
    </logging>

    <security>
        <chroot>0</chroot>
        <!--
        <changeowner>
            <user>nobody</user>
            <group>nogroup</group>
124
        </changeowner>
125 126
        -->
    </security>
Jack Moffitt's avatar
Jack Moffitt committed
127
</icecast>