From d4896b353eed0ab37cf8a2591fe1f5369c37883f Mon Sep 17 00:00:00 2001 From: tzlil Date: Thu, 16 Feb 2023 16:40:26 +0200 Subject: stuff --- hosts/vps/matrix.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 hosts/vps/matrix.nix (limited to 'hosts/vps/matrix.nix') diff --git a/hosts/vps/matrix.nix b/hosts/vps/matrix.nix new file mode 100644 index 0000000..cb13326 --- /dev/null +++ b/hosts/vps/matrix.nix @@ -0,0 +1,23 @@ +{ pkgs, config, ... }: + +{ + config = { + services.matrix-synapse = { + enable = true; + settings.server_name = config.networking.domain; + settings.listeners = [ + { port = 8008; + bind_addresses = [ "::1" ]; + type = "http"; + tls = false; + x_forwarded = true; + resources = [ { + names = [ "client" "federation" ]; + compress = true; + } ]; + } + ]; + }; + networking.firewall.allowedTCPPorts = [80 443]; + }; +} \ No newline at end of file -- cgit 1.4.1