<!-- Icecast2 config template for the radio container.
     The entrypoint substitutes the __*_PASSWORD__ placeholders from
     /srv/betoniarka/secrets/icecast_credentials.json and writes the result
     to /etc/icecast2/icecast.xml. Never commit real passwords here. -->
<icecast>
    <location>Wolne Ksiestwo Baluty</location>
    <admin>admin@localhost</admin>

    <limits>
        <clients>64</clients>
        <sources>4</sources>
        <queue-size>524288</queue-size>
        <client-timeout>30</client-timeout>
        <header-timeout>15</header-timeout>
        <source-timeout>10</source-timeout>
        <burst-on-connect>1</burst-on-connect>
        <burst-size>65535</burst-size>
    </limits>

    <authentication>
        <source-password>__SOURCE_PASSWORD__</source-password>
        <relay-password>__RELAY_PASSWORD__</relay-password>
        <admin-user>admin</admin-user>
        <admin-password>__ADMIN_PASSWORD__</admin-password>
    </authentication>

    <hostname>__HOSTNAME__</hostname>

    <listen-socket>
        <port>8000</port>
        <bind-address>0.0.0.0</bind-address>
    </listen-socket>

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

    <fileserve>1</fileserve>

    <paths>
        <basedir>/usr/share/icecast2</basedir>
        <logdir>/var/log/icecast2</logdir>
        <webroot>/usr/share/icecast2/web</webroot>
        <adminroot>/usr/share/icecast2/admin</adminroot>
        <alias source="/" destination="/status.xsl"/>
    </paths>

    <logging>
        <accesslog>access.log</accesslog>
        <errorlog>error.log</errorlog>
        <loglevel>3</loglevel>
        <logsize>10000</logsize>
        <logarchive>0</logarchive>
    </logging>
</icecast>
