radio-bullshit/icecast.xml.jinja

69 lines
2.0 KiB
Django/Jinja

<icecast>
<location>Earth</location>
<admin>icemaster@{{ hostname }}</admin>
<limits>
<clients>100</clients>
<sources>2</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>
<!-- Admin logs in with the username given below -->
<admin-user>{{ admin_user }}</admin-user>
<admin-password>{{ admin_password }}</admin-password>
</authentication>
<hostname>{{ hostname }}</hostname>
<http-headers>
<header name="Access-Control-Allow-Origin" value="*" />
<header name="Access-Control-Allow-Headers" value="*" />
<header name="Access-Control-Allow-Methods" value="POST, GET, OPTIONS" />
<header name="X-Robots-Tag" value="index, noarchive" />
</http-headers>
<listen-socket>
<port>{{ port }}</port>
</listen-socket>
<mount type="normal">
<mount-name>/radio-bullshit</mount-name>
<username>{{ source_username }}</username>
<password>{{ source_password }}</password>
<max-listeners>{{ max_listeners }}</max-listeners>
<burst-size>65536</burst-size>
<hidden>1</hidden>
<public>1</public>
</mount>
<fileserve>1</fileserve>
<paths>
<basedir>/usr/share/icecast2</basedir>
<logdir>/var/log/icecast</logdir>
<webroot>/usr/share/icecast2/web</webroot>
<adminroot>/usr/share/icecast2/admin</adminroot>
<alias source="/" destination="/index.html"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->
</logging>
<security>
<chroot>0</chroot>
</security>
</icecast>