summaryrefslogtreecommitdiffstats
path: root/lass/2configs/services/coms/murmur.nix
blob: 40c53da36eff2156d5bda5590a9afbbbab2d0104 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ config, lib, pkgs, ... }:
{
  services.murmur = {
    enable = true;
    # allowHtml = false;
    bandwidth = 10000000;
    registerName = "lassul.us";
    autobanTime = 30;
    sslCert = "/var/lib/acme/lassul.us/cert.pem";
    sslKey = "/var/lib/acme/lassul.us/key.pem";
    extraConfig = ''
      opusthreshold=0
      # rememberchannelduration=10000
    '';
  };
  krebs.iptables.tables.filter.INPUT.rules = [
    { predicate = "-p tcp --dport 64738"; target = "ACCEPT";}
    { predicate = "-p udp --dport 64738"; target = "ACCEPT";}
  ];

  # services.botamusique = {
  #   enable = true;
  #   settings = {
  #     server.host = "lassul.us";
  #     bot.auto_check_updates = false;
  #     bot.max_track_duration = 360;
  #     webinterface.enabled = true;
  #   };
  # };

  services.nginx.virtualHosts."lassul.us" = {
    enableACME = true;
  };
  security.acme.certs."lassul.us" = {
    group = "lasscert";
  };
  users.groups.lasscert.members = [
    "nginx"
    "murmur"
  ];

  # services.nginx.virtualHosts."bota.r" = {
  #   locations."/" = {
  #     proxyPass = "http://localhost:8181";
  #   };
  # };
}