~pvigo/+junk/linkat-perfil-radio-16.04

« back to all changes in this revision

Viewing changes to .pc/3/linkat-perfil-radio/template_icecast.xml

  • Committer: Pablo Vigo
  • Date: 2018-05-07 11:33:44 UTC
  • Revision ID: pvigo@xtec.cat-20180507113344-mfy94dmygnn4t5nd
Fixed radio scripts

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<icecast>
 
2
    <!-- location and admin are two arbitrary strings that are e.g. visible
 
3
         on the server info page of the icecast web interface
 
4
         (server_version.xsl). -->
 
5
    <location>_LOCATION_</location>
 
6
    <admin>icemaster@localhost</admin>
 
7
 
 
8
    <!-- IMPORTANT!
 
9
         Especially for inexperienced users:
 
10
         Start out by ONLY changing all passwords and restarting Icecast.
 
11
         For detailed setup instructions please refer to the documentation.
 
12
         It's also available here: http://icecast.org/docs/
 
13
    -->
 
14
 
 
15
    <limits>
 
16
        <clients>100</clients>
 
17
        <sources>3</sources>
 
18
        <queue-size>524288</queue-size>
 
19
        <client-timeout>30</client-timeout>
 
20
        <header-timeout>15</header-timeout>
 
21
        <source-timeout>10</source-timeout>
 
22
        <!-- If enabled, this will provide a burst of data when a client 
 
23
             first connects, thereby significantly reducing the startup 
 
24
             time for listeners that do substantial buffering. However,
 
25
             it also significantly increases latency between the source
 
26
             client and listening client.  For low-latency setups, you
 
27
             might want to disable this. -->
 
28
        <burst-on-connect>1</burst-on-connect>
 
29
        <!-- same as burst-on-connect, but this allows for being more
 
30
             specific on how much to burst. Most people won't need to
 
31
             change from the default 64k. Applies to all mountpoints  -->
 
32
        <burst-size>65535</burst-size>
 
33
    </limits>
 
34
 
 
35
    <authentication>
 
36
        <!-- Sources log in with username 'source' -->
 
37
        <source-password>_PASSWORD_</source-password>
 
38
        <!-- Relays log in with username 'relay' -->
 
39
        <relay-password>_PASSWORD_</relay-password>
 
40
 
 
41
        <!-- Admin logs in with the username given below -->
 
42
        <admin-user>admin</admin-user>
 
43
        <admin-password>_PASSWORD_</admin-password>
 
44
    </authentication>
 
45
 
 
46
    <!-- set the mountpoint for a shoutcast source to use, the default if not
 
47
         specified is /stream but you can change it here if an alternative is
 
48
         wanted or an extension is required
 
49
    <shoutcast-mount>/live.nsv</shoutcast-mount>
 
50
    -->
 
51
 
 
52
    <!-- Uncomment this if you want directory listings -->
 
53
    <!--
 
54
    <directory>
 
55
        <yp-url-timeout>15</yp-url-timeout>
 
56
        <yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
 
57
    </directory>
 
58
    -->
 
59
 
 
60
    <!-- This is the hostname other people will use to connect to your server.
 
61
         It affects mainly the urls generated by Icecast for playlists and yp
 
62
         listings. You MUST configure it properly for YP listings to work!
 
63
    -->
 
64
    <hostname>_HOSTNAME_</hostname>
 
65
 
 
66
    <!-- You may have multiple <listener> elements -->
 
67
    <listen-socket>
 
68
        <port>8000</port>
 
69
        <!-- <bind-address>127.0.0.1</bind-address> -->
 
70
        <!-- <shoutcast-mount>/stream</shoutcast-mount> -->
 
71
    </listen-socket>
 
72
    <!--
 
73
    <listen-socket>
 
74
        <port>8080</port>
 
75
    </listen-socket>
 
76
    -->
 
77
    <!--
 
78
    <listen-socket>
 
79
        <port>8443</port>
 
80
        <ssl>1</ssl>
 
81
    </listen-socket>
 
82
    -->
 
83
 
 
84
 
 
85
    <!-- Global header settings 
 
86
         Headers defined here will be returned for every HTTP request to Icecast.
 
87
 
 
88
         The ACAO header makes Icecast public content/API by default
 
89
         This will make streams easier embeddable (some HTML5 functionality needs it).
 
90
         Also it allows direct access to e.g. /status-json.xsl from other sites.
 
91
         If you don't want this, comment out the following line or read up on CORS. 
 
92
    -->
 
93
    <http-headers>
 
94
        <header name="Access-Control-Allow-Origin" value="*" />
 
95
    </http-headers>
 
96
 
 
97
 
 
98
    <!-- Relaying
 
99
         You don't need this if you only have one server.
 
100
         Please refer to the config for a detailed explanation.
 
101
    -->
 
102
    <!--<master-server>127.0.0.1</master-server>-->
 
103
    <!--<master-server-port>8001</master-server-port>-->
 
104
    <!--<master-update-interval>120</master-update-interval>-->
 
105
    <!--<master-password>hackme</master-password>-->
 
106
 
 
107
    <!-- setting this makes all relays on-demand unless overridden, this is
 
108
         useful for master relays which do not have <relay> definitions here.
 
109
         The default is 0 -->
 
110
    <!--<relays-on-demand>1</relays-on-demand>-->
 
111
 
 
112
    <!--
 
113
    <relay>
 
114
        <server>127.0.0.1</server>
 
115
        <port>8080</port>
 
116
        <mount>/example.ogg</mount>
 
117
        <local-mount>/different.ogg</local-mount>
 
118
        <on-demand>0</on-demand>
 
119
 
 
120
        <relay-shoutcast-metadata>0</relay-shoutcast-metadata>
 
121
    </relay>
 
122
    -->
 
123
 
 
124
 
 
125
    <!-- Mountpoints
 
126
         Only define <mount> sections if you want to use advanced options,
 
127
         like alternative usernames or passwords
 
128
    -->
 
129
 
 
130
    <!-- Default settings for all mounts that don't have a specific <mount type="normal">.
 
131
    -->
 
132
    <!-- 
 
133
    <mount type="default">
 
134
        <public>0</public>
 
135
        <intro>/server-wide-intro.ogg</intro>
 
136
        <max-listener-duration>3600</max-listener-duration>
 
137
        <authentication type="url">
 
138
                <option name="mount_add" value="http://auth.example.org/stream_start.php"/>
 
139
        </authentication>
 
140
        <http-headers>
 
141
                <header name="foo" value="bar" />
 
142
        </http-headers>
 
143
    </mount>
 
144
    -->
 
145
#
 
146
# AFEGIT PERFIL RÀDIO
 
147
#
 
148
 
 
149
    <mount type="normal">
 
150
        <mount-name>/stream</mount-name>
 
151
        <username>stream</username>
 
152
        <password>_PASSWORD_</password>
 
153
        <max-listeners>_MAX_LISTENERS_</max-listeners>
 
154
        <burst-size>65536</burst-size>
 
155
        <hidden>0</hidden>
 
156
        <public>1</public>
 
157
    </mount>
 
158
 
 
159
    <mount type="normal">
 
160
        <mount-name>/radio</mount-name>
 
161
        <username>radio</username>
 
162
        <password>_PASSWORD_</password>
 
163
        <max-listeners>_MAX_LISTENERS_</max-listeners>
 
164
        <burst-size>65536</burst-size>
 
165
        <hidden>0</hidden>
 
166
        <public>1</public>
 
167
    </mount>
 
168
 
 
169
    <mount type="normal">
 
170
        <mount-name>/audio</mount-name>
 
171
        <username>audio</username>
 
172
        <password>_PASSWORD_</password>
 
173
        <max-listeners>_MAX_LISTENERS_</max-listeners>
 
174
        <burst-size>65536</burst-size>
 
175
        <hidden>0</hidden>
 
176
        <public>1</public>
 
177
    </mount>
 
178
    <mount type="normal">
 
179
        <mount-name>/video</mount-name>
 
180
        <username>video</username>
 
181
        <password>_PASSWORD_</password>
 
182
        <max-listeners>_MAX_LISTENERS_</max-listeners>
 
183
        <burst-size>65536</burst-size>
 
184
        <hidden>0</hidden>
 
185
        <public>1</public>
 
186
    </mount>
 
187
 
 
188
#
 
189
# PERFIL RÀDIO
 
190
#
 
191
 
 
192
    <!-- Normal mounts -->
 
193
    <!--
 
194
    <mount type="normal">
 
195
        <mount-name>/example-complex.ogg</mount-name>
 
196
 
 
197
        <username>othersource</username>
 
198
        <password>hackmemore</password>
 
199
 
 
200
        <max-listeners>1</max-listeners>
 
201
        <dump-file>/tmp/dump-example1.ogg</dump-file>
 
202
        <burst-size>65536</burst-size>
 
203
        <fallback-mount>/example2.ogg</fallback-mount>
 
204
        <fallback-override>1</fallback-override>
 
205
        <fallback-when-full>1</fallback-when-full>
 
206
        <intro>/example_intro.ogg</intro>
 
207
        <hidden>1</hidden>
 
208
        <public>1</public>
 
209
        <authentication type="htpasswd">
 
210
                <option name="filename" value="myauth"/>
 
211
                <option name="allow_duplicate_users" value="0"/>
 
212
        </authentication>
 
213
        <http-headers>
 
214
                <header name="Access-Control-Allow-Origin" value="http://webplayer.example.org" />
 
215
                <header name="baz" value="quux" />
 
216
        </http-headers>
 
217
        <on-connect>/home/icecast/bin/stream-start</on-connect>
 
218
        <on-disconnect>/home/icecast/bin/stream-stop</on-disconnect>
 
219
    </mount>
 
220
    -->
 
221
 
 
222
    <!--
 
223
    <mount type="normal">
 
224
        <mount-name>/auth_example.ogg</mount-name>
 
225
        <authentication type="url">
 
226
            <option name="mount_add"       value="http://myauthserver.net/notify_mount.php"/>
 
227
            <option name="mount_remove"    value="http://myauthserver.net/notify_mount.php"/>
 
228
            <option name="listener_add"    value="http://myauthserver.net/notify_listener.php"/>
 
229
            <option name="listener_remove" value="http://myauthserver.net/notify_listener.php"/>
 
230
            <option name="headers"         value="x-pragma,x-token"/>
 
231
            <option name="header_prefix"   value="ClientHeader."/>
 
232
        </authentication>
 
233
    </mount>
 
234
    -->
 
235
 
 
236
    <fileserve>1</fileserve>
 
237
 
 
238
    <paths>
 
239
        <!-- basedir is only used if chroot is enabled -->
 
240
        <basedir>/usr/share/icecast2</basedir>
 
241
 
 
242
        <!-- Note that if <chroot> is turned on below, these paths must both
 
243
             be relative to the new root, not the original root -->
 
244
        <logdir>/var/log/icecast2</logdir>
 
245
        <webroot>/usr/share/icecast2/web</webroot>
 
246
        <adminroot>/usr/share/icecast2/admin</adminroot>
 
247
        <!-- <pidfile>/usr/share/icecast2/icecast.pid</pidfile> -->
 
248
 
 
249
        <!-- Aliases: treat requests for 'source' path as being for 'dest' path
 
250
             May be made specific to a port or bound address using the "port"
 
251
             and "bind-address" attributes.
 
252
          -->
 
253
        <!--
 
254
        <alias source="/foo" destination="/bar"/>
 
255
        -->
 
256
        <!-- Aliases: can also be used for simple redirections as well,
 
257
             this example will redirect all requests for http://server:port/ to
 
258
             the status page
 
259
        -->
 
260
        <alias source="/" destination="/status.xsl"/>
 
261
        <!-- The certificate file needs to contain both public and private part.
 
262
             Both should be PEM encoded.
 
263
        <ssl-certificate>/usr/share/icecast2/icecast.pem</ssl-certificate>
 
264
        -->
 
265
    </paths>
 
266
 
 
267
    <logging>
 
268
        <accesslog>access.log</accesslog>
 
269
        <errorlog>error.log</errorlog>
 
270
        <!-- <playlistlog>playlist.log</playlistlog> -->
 
271
        <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
 
272
        <logsize>10000</logsize> <!-- Max size of a logfile -->
 
273
        <!-- If logarchive is enabled (1), then when logsize is reached
 
274
             the logfile will be moved to [error|access|playlist].log.DATESTAMP,
 
275
             otherwise it will be moved to [error|access|playlist].log.old.
 
276
             Default is non-archive mode (i.e. overwrite)
 
277
        -->
 
278
        <!-- <logarchive>1</logarchive> -->
 
279
    </logging>
 
280
 
 
281
    <security>
 
282
        <chroot>0</chroot>
 
283
        <!--
 
284
        <changeowner>
 
285
            <user>nobody</user>
 
286
            <group>nogroup</group>
 
287
        </changeowner>
 
288
        -->
 
289
    </security>
 
290
</icecast>