summaryrefslogtreecommitdiffstats
path: root/lass/2configs/services/coms/murmur.nix
diff options
context:
space:
mode:
authorlassulus <git@lassul.us>2023-02-22 07:27:10 +0100
committerlassulus <git@lassul.us>2023-02-22 07:32:37 +0100
commit222f1e92dbc10aa389f712ae0d345befe4e5423f (patch)
tree705adc51ffcd7832d8aaca06b4803b315fa1931a /lass/2configs/services/coms/murmur.nix
parent79a7ab4fd8899e7ac197318bb58a3e04affdf459 (diff)
l orange.r: add coms service, proxy via neoprism.r
Diffstat (limited to 'lass/2configs/services/coms/murmur.nix')
-rw-r--r--lass/2configs/services/coms/murmur.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/lass/2configs/services/coms/murmur.nix b/lass/2configs/services/coms/murmur.nix
new file mode 100644
index 000000000..40c53da36
--- /dev/null
+++ b/lass/2configs/services/coms/murmur.nix
@@ -0,0 +1,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";
+ # };
+ # };
+}