summaryrefslogtreecommitdiffstats
path: root/lass/2configs
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-09-03 12:08:39 +0200
committerlassulus <git@lassul.us>2023-09-03 12:08:39 +0200
commit5ead5cf6dd5f504459fce09adcc4db820d960eaf (patch)
treeab44560b6f925280fc9a39da8d820bbae98eaca4 /lass/2configs
parenta0274f6bbd36c16fb51a2d6ae6824e8cf576a876 (diff)
l: add murmur.nix
Diffstat (limited to 'lass/2configs')
-rw-r--r--lass/2configs/murmur.nix37
1 files changed, 37 insertions, 0 deletions
diff --git a/lass/2configs/murmur.nix b/lass/2configs/murmur.nix
new file mode 100644
index 000000000..3129fef50
--- /dev/null
+++ b/lass/2configs/murmur.nix
@@ -0,0 +1,37 @@
+{ config, lib, pkgs, ... }:
+{
+ services.murmur = {
+ enable = true;
+ allowHtml = false;
+ bandwidth = 10000000;
+ registerName = "lassul.us";
+ autobanTime = 30;
+ };
+ krebs.iptables.tables.filter.INPUT.rules = [
+ { predicate = "-p tcp --dport 64738"; target = "ACCEPT";}
+ { predicate = "-p udp --dport 64738"; target = "ACCEPT";}
+ ];
+
+ systemd.services.docker-mumble-web.serviceConfig = {
+ StandardOutput = lib.mkForce "journal";
+ StandardError = lib.mkForce "journal";
+ };
+ virtualisation.oci-containers.containers.mumble-web = {
+ image = "rankenstein/mumble-web:0.5";
+ environment = {
+ MUMBLE_SERVER = "lassul.us:64738";
+ };
+ ports = [
+ "64739:8080"
+ ];
+ };
+
+ services.nginx.virtualHosts."mumble.lassul.us" = {
+ enableACME = true;
+ forceSSL = true;
+ locations."/" = {
+ proxyPass = "http://localhost:64739";
+ proxyWebsockets = true;
+ };
+ };
+}