icecast.xml 2 KB
Newer Older
Marvin Scholz's avatar
Marvin Scholz committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
<icecast>
    <location>Test</location>
    <admin>foo@example.org</admin>

    <limits>
        <clients>30</clients>
        <sources>5</sources>
        <queue-size>524288</queue-size>
        <client-timeout>30</client-timeout>
        <header-timeout>15</header-timeout>
        <source-timeout>10</source-timeout>
        <burst-size>65535</burst-size>
    </limits>

    <authentication>
        <!-- Sources log in with username 'source' -->
        <source-password>hackme</source-password>

        <!-- Relays log in with username 'relay' -->
        <relay-password>hackme</relay-password>

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

    <hostname>localhost</hostname>

    <listen-socket>
        <port>8000</port>
        <!-- <shoutcast-mount>/stream</shoutcast-mount> -->
    </listen-socket>

    <http-headers>
        <header name="Access-Control-Allow-Origin" value="*" />
    </http-headers>

    <mount type="normal">
        <mount-name>/test.ogg</mount-name>
        <username>foobar</username>
        <password>hackmemore</password>
    </mount>

44 45 46 47 48
    <mount type="normal">
        <mount-name>/test-on-connect.ogg</mount-name>
        <on-connect>on-connect.sh</on-connect>
    </mount>

Marvin Scholz's avatar
Marvin Scholz committed
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
    <mount type="normal">
        <mount-name>/foo.ogg</mount-name>
        <authentication type="htpasswd">
            <option name="filename" value="myauth"/>
            <option name="allow_duplicate_users" value="0"/>
        </authentication>
    </mount>

    <fileserve>1</fileserve>

    <paths>
        <logdir>./</logdir>
        <webroot>../web</webroot>
        <adminroot>../admin</adminroot>

        <alias source="/" destination="/status.xsl"/>
    </paths>

    <logging>
        <accesslog>-</accesslog>
        <errorlog>-</errorlog>

        <loglevel>4</loglevel>
        <logsize>10000</logsize>
    </logging>

    <security>
        <chroot>0</chroot>
    </security>
</icecast>