blob: 3bf0044a5780bac2196bf5de089988441eb83c8d (
plain) (
blame)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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>
|