This repository has no description
924 B
37 lines
1{ config, lib, pkgs, ... }:
2{
3 services.murmur = {
4 enable = true;
5 allowHtml = false;
6 bandwidth = 10000000;
7 registerName = "lassul.us";
8 autobanTime = 30;
9 };
10 krebs.iptables.tables.filter.INPUT.rules = [
11 { predicate = "-p tcp --dport 64738"; target = "ACCEPT";}
12 { predicate = "-p udp --dport 64738"; target = "ACCEPT";}
13 ];
14
15 systemd.services.docker-mumble-web.serviceConfig = {
16 StandardOutput = lib.mkForce "journal";
17 StandardError = lib.mkForce "journal";
18 };
19 virtualisation.oci-containers.containers.mumble-web = {
20 image = "rankenstein/mumble-web:0.5";
21 environment = {
22 MUMBLE_SERVER = "lassul.us:64738";
23 };
24 ports = [
25 "64739:8080"
26 ];
27 };
28
29 services.nginx.virtualHosts."mumble.lassul.us" = {
30 enableACME = true;
31 forceSSL = true;
32 locations."/" = {
33 proxyPass = "http://localhost:64739";
34 proxyWebsockets = true;
35 };
36 };
37}