diff --git a/backend1.nix b/backend1.nix index f05d069..df94dde 100644 --- a/backend1.nix +++ b/backend1.nix @@ -18,7 +18,8 @@ in { networking.hostName = "backend1"; networking.domain = "banditlair.com"; networking.firewall.allowPing = true; - networking.firewall.allowedTCPPorts = [ 80 443 ]; + networking.firewall.allowedTCPPorts = [ 80 443 64738 ]; + networking.firewall.allowedUDPPorts = [ 64738 ]; services.openssh.enable = true; users.users.root.openssh.authorizedKeys.keyFiles = [ @@ -112,4 +113,13 @@ in { extraConfigFiles = [ "/var/keys/synapse-extra-config.yaml" ]; }; users.users.matrix-synapse.extraGroups = [ "keys" ]; + + services.murmur = { + enable = true; + bandwidth = 128000; + password = "$MURMURD_PASSWORD"; + environmentFile = "/var/keys/murmur.env"; + }; + + users.users.murmur.extraGroups = [ "keys" ]; } diff --git a/instances.tf b/instances.tf index 3e4cf11..0dcefa1 100644 --- a/instances.tf +++ b/instances.tf @@ -110,5 +110,8 @@ module "deploy_nixos_backend1" { password: "${data.sops_file.secrets.data["synapse.db_password"]}" macaroon_secret_key: "${data.sops_file.secrets.data["synapse.macaroon_secret_key"]}" EOT + "murmur.env" = <