icecast.xml.in 3.53 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 10
        <client-timeout>30</client-timeout>
        <header-timeout>15</header-timeout>
        <source-timeout>10</source-timeout>
    </limits>
Jack Moffitt's avatar
Jack Moffitt committed
11

12 13
    <authentication>
        <!-- Sources log in with username 'source' -->
14
        <source-password>hackme</source-password>
15
        <!-- Relays log in username 'relay' -->
16
        <relay-password>hackme</relay-password>
17 18 19 20 21 22 23 24

        <!-- 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 -->
    <!--
25 26 27 28
    <directory>
        <yp-url-timeout>15</yp-url-timeout>
        <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
    </directory>
29
    <directory>
30
        <yp-url-timeout>15</yp-url-timeout>
31 32 33
        <yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
    </directory>
     -->
Jack Moffitt's avatar
Jack Moffitt committed
34

35
    <hostname>localhost</hostname>
Jack Moffitt's avatar
Jack Moffitt committed
36

37
    <!-- You can use these two if you only want a single listener -->
38 39
    <!--<port>8000</port> -->
    <!--<bind-address>127.0.0.1</bind-address>-->
40 41 42 43 44 45 46 47 48 49 50 51

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

52 53 54 55
    <!--<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
56 57
    <!--
    <relay>
58 59 60 61
        <server>127.0.0.1</server>
        <port>8001</port>
        <mount>/example.ogg</mount>
        <local-mount>/different.ogg</local-mount>
62

63
        <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
Michael Smith's avatar
Michael Smith committed
64 65
    </relay>
    -->
66

67 68
    <!-- Only define a <mount> section if you want to use advanced options,
         like alternative usernames or passwords
69
    <mount>
70
        <mount-name>/example-complex.ogg</mount-name>
71

72 73 74 75
        <username>othersource</username>
        <password>hackmemore</password>

        <max-listeners>1</max-listeners>
76
        <dump-file>/tmp/dump-example1.ogg</dump-file>
77 78
        <fallback-mount>/example2.ogg</fallback-mount>
    </mount>
79
    -->
80

81
    <fileserve>1</fileserve>
82

83
    <paths>
84
		<!-- basedir is only used if chroot is enabled -->
85
        <basedir>@pkgdatadir@</basedir>
86 87 88

        <!-- Note that if <chroot> is turned on below, these paths must both
             be relative to the new root, not the original root -->
89
        <logdir>@localstatedir@/log/@PACKAGE@</logdir>
90 91
        <webroot>@pkgdatadir@/web</webroot>
        <adminroot>@pkgdatadir@/admin</adminroot>
92
        <!-- <pidfile>@pkgdatadir@/icecast.pid</pidfile> -->
93 94 95 96 97 98 99 100

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

103 104 105
    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
106
      	<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
107 108 109 110 111 112 113 114
    </logging>

    <security>
        <chroot>0</chroot>
        <!--
        <changeowner>
            <user>nobody</user>
            <group>nogroup</group>
115
        </changeowner>
116 117
        -->
    </security>
Jack Moffitt's avatar
Jack Moffitt committed
118
</icecast>