<icecast>
    <limits>
        <clients>500</clients>
        <sources>1</sources>
        <threadpool>20</threadpool>
        <queue-size>8388608</queue-size>
        <client-timeout>30</client-timeout>
        <header-timeout>15</header-timeout>
        <source-timeout>30</source-timeout>
        <!-- mirar be i fer proves amb i sense bursts,
		sobretot amb cortado, que pot ser que no connecti be amb el 
		burst activat -->
        <burst-on-connect>1</burst-on-connect>
        <burst-size>4194304</burst-size>
    </limits>

    <authentication>
        <source-password>password</source-password>
        <relay-password>password2</relay-password>
        <admin-user>musa</admin-user>
        <admin-password>adminpassword</admin-password>
    </authentication>

    <hostname>teststream</hostname>

    <!-- Desactivem opcio de servir fitxers estatics-->
    <fileserve>1</fileserve>

    <listen-socket>
        <port>8000</port>
    </listen-socket>

    <!-- Only define a <mount> section if you want to use advanced options,
         like alternative usernames or passwords -->
    <mount>
        <mount-name>/test.ogg</mount-name>
	<username>sourcetest</username>
        <password>password3</password>
	<max-listeners>400</max-listeners>
	<!--possibilitat guardar gravacio,provar-ho
	<dump-file>/tmp/dump-example1.ogg</dump-file>
	-->
        <burst-on-connect>1</burst-on-connect>
	<burst-size>1524288</burst-size>
        <queue-size>2097152</queue-size> 
	<hidden>1</hidden>
        <no-yp>1</no-yp>
	<!--abans i despres de connectar...molt util...        
	<on-connect>/home/icecast/bin/stream-start</on-connect>
        <on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
	-->
    </mount>
    
 <mount>
        <mount-name>/test2.ogg</mount-name>
        <username>sourcetest2</username>
        <password>password4</password>
        <max-listeners>400</max-listeners>
        <!--possibilitat guardar gravacio,provar-ho
        <dump-file>/tmp/dump-example1.ogg</dump-file>
        -->
        <burst-on-connect>1</burst-on-connect>
        <burst-size>1524288</burst-size>
        <queue-size>2097152</queue-size>
        <hidden>1</hidden>
        <no-yp>1</no-yp>
        <!--abans i despres de connectar...molt util...
        <on-connect>/home/icecast/bin/stream-start</on-connect>
        <on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
        -->
    </mount>

    

    <paths>
        <!-- basedir is only used if chroot is enabled -->
        <basedir>/usr/share/icecast2</basedir>
        <!-- Note that if <chroot> is turned on below, these paths must both
             be relative to the new root, not the original root -->
        <logdir>/var/log/icecast2</logdir>
        <webroot>/usr/share/icecast2/web</webroot>
        <adminroot>/usr/share/icecast2/admin</adminroot>
        <!-- <pidfile>/usr/share/icecast2/icecast.pid</pidfile> -->

        <!-- 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"/>
          -->
        <!-- Aliases: can also be used for simple redirections as well,
             this example will redirect all requests for http://server:port/ to
             the status page
          -->
        <alias source="/" dest="/status.xsl"/>
    </paths>

    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
        <!-- <playlistlog>playlist.log</playlistlog> -->
      	<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
      	<logsize>1000</logsize> <!-- Max size of a logfile -->
        <!-- If logarchive is enabled (1), then when logsize is reached
             the logfile will be moved to [error|access|playlist].log.DATESTAMP,
             otherwise it will be moved to [error|access|playlist].log.old.
             Default is non-archive mode (i.e. overwrite)
        -->
        <logarchive>1</logarchive>
    </logging>

    <security>
        <chroot>0</chroot>
        <!--
        <changeowner>
            <user>nobody</user>
            <group>nogroup</group>
        </changeowner>
        -->
    </security>
</icecast>

