summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/udpt.nix
blob: 6d55ffaf898e2ad3ca5c4e3b0837bf6d6b3b05f1 (plain)
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
{pkgs, ...}:

let
  cfgfile = pkgs.writeText "udpt-config" ''
    [db]
    driver=sqlite3
    param=:memory:

    [tracker]
    is_dynamic=yes
    port=6969
    threads=5
    allow_remotes=yes
    allow_iana_ips=no
    announce_interval=1800
    cleanup_interval=120

    [apiserver]
    enable=yes

    [logging]
    filename=-
    level=warning
  '';
in {
  makefu.udpt = {
    enable = true;
    inherit cfgfile;
  };

}