icecast.xml.in 3.89 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
        <!-- This will provide a burst of data when a client first connects,
             thereby significantly reducing the startup time for a listener -->
        <burst-on-connect>1</burst-on-connect>
13
    </limits>
Jack Moffitt's avatar
Jack Moffitt committed
14

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

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

38
39
40
    <!-- 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. -->
41
    <hostname>localhost</hostname>
Jack Moffitt's avatar
Jack Moffitt committed
42

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

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

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

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

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

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

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

87
    <fileserve>1</fileserve>
88

89
    <paths>
90
		<!-- basedir is only used if chroot is enabled -->
91
        <basedir>@pkgdatadir@</basedir>
92
93
94

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

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

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

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