summaryrefslogtreecommitdiff
path: root/nix/modules/icecast.nix
blob: 0cef01842c0ba7147505398af0c5f838f281e83a (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 config.monorepo.profiles.server.enable;
    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";
}