blob: 7d3d88dd79b0daf9c25233e187c69172cb9db570 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{ lib, config, ... }:
{
services.icecast = {
enable = lib.mkDefault false;
listen.address = "0.0.0.0";
extraConfig = ''
<mount type="default">
<public>0</public>
<intro>/stream.m3u</intro>
<max-listener-duration>3600</max-listener-duration>
<authentication type="url">
<option name="mount_add" value="http://auth.example.org/stream_start.php"/>
</authentication>
<http-headers>
<header name="foo" value="bar" />
</http-headers>
</mount>
'';
};
admin.password = "changeme";
}
|