diff options
Diffstat (limited to 'roles/streaming/icecast/templates/icecast.xml.j2')
-rw-r--r-- | roles/streaming/icecast/templates/icecast.xml.j2 | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/roles/streaming/icecast/templates/icecast.xml.j2 b/roles/streaming/icecast/templates/icecast.xml.j2 new file mode 100644 index 00000000..3bf0044a --- /dev/null +++ b/roles/streaming/icecast/templates/icecast.xml.j2 @@ -0,0 +1,71 @@ +<icecast> +<!-- ***** global ***** --> + <listen-socket> + <port>8080</port> + </listen-socket> + + <limits> + <threadpool>5</threadpool> + <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>32768</burst-size> + </limits> + + <authentication> + <source-password>{{ item.value.source_password }}</source-password> + <relay-password>{{ item.value.relay_password }}</relay-password> + <admin-user>{{ item.value.admin.username }}</admin-user> + <admin-password>{{ item.value.admin.password }}</admin-password> + </authentication> + +{% if 'hostname' in item.value %} + <hostname>{{ item.value.hostname }}</hostname> +{% endif %} +{% if 'location' in item.value %} + <location>{{ item.value.location }}</location> +{% endif %} +{% if 'contact' in item.value %} + <admin>{{ item.value.contact }}</admin> +{% endif %} + + +<!-- ***** mountpoints ***** --> +{% for mountpoint, config in item.value.mountpoints.items() %} + <mount> + <mount-name>{{ mountpoint }}</mount-name> +{% if 'username' in config %} + <username>{{ config.username }}</username> +{% endif %} + <password>{{ config.password }}</password> +{% if 'max_listeners' in config %} + <max-listeners>{{ config.max_listeners }}</max-listeners> +{% endif %} + </mount> + +{% endfor %} + +<!-- ***** aux ***** --> + <fileserve>1</fileserve> + <paths> + <basedir>/usr/share/icecast2</basedir> + <logdir>/srv/logs</logdir> + <webroot>/usr/share/icecast2/web</webroot> + <adminroot>/usr/share/icecast2/admin</adminroot> + <alias source="/" dest="/status.xsl"/> + </paths> + + <logging> + <errorlog>-</errorlog> + <accesslog>access.log</accesslog> + <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error --> + <logsize>100000</logsize> <!-- Max size of a logfile --> + </logging> + + <security> + <chroot>0</chroot> + </security> +<!-- ***** end ***** --> +</icecast> |