icecast.xml.in 3.61 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
        <yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
32 33 34 35
    </directory>
    <directory>
        <yp-url-timeout>15</yp-url-timeout>
        <yp-url>http://yp.icecast.net/cgi-bin/yp.cgi</yp-url>
36 37
    </directory>
     -->
Jack Moffitt's avatar
Jack Moffitt committed
38

39
    <hostname>localhost</hostname>
Jack Moffitt's avatar
Jack Moffitt committed
40

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

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

56 57 58 59
    <!--<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
60 61
    <!--
    <relay>
62 63 64 65
        <server>127.0.0.1</server>
        <port>8001</port>
        <mount>/example.ogg</mount>
        <local-mount>/different.ogg</local-mount>
66

67
        <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
Michael Smith's avatar
Michael Smith committed
68 69
    </relay>
    -->
70

71 72 73
    <!-- Only define a <mount> section if you want to use advanced options,
         like alternative usernames or passwords
      -->
74
    <mount>
75
        <mount-name>/example-complex.ogg</mount-name>
76

77 78 79 80
        <username>othersource</username>
        <password>hackmemore</password>

        <max-listeners>1</max-listeners>
81
        <!-- <dump-file>/tmp/dump-example1.ogg</dump-file> -->
82 83 84
        <fallback-mount>/example2.ogg</fallback-mount>
    </mount>

85
    <fileserve>1</fileserve>
86

87
    <paths>
88
        <basedir>@pkgdatadir@</basedir>
89 90 91

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

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

106 107 108
    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
109
      	<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
110 111 112 113 114 115 116 117 118 119 120
    </logging>

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