From f1f0f280068592d606c2cec9741ae1d10d0e4583 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 27 Feb 2022 16:36:30 +0100 Subject: surtr: matrix: ... --- hosts/surtr/matrix/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'hosts/surtr/matrix/default.nix') diff --git a/hosts/surtr/matrix/default.nix b/hosts/surtr/matrix/default.nix index d54c0bc2..952c8b24 100644 --- a/hosts/surtr/matrix/default.nix +++ b/hosts/surtr/matrix/default.nix @@ -73,11 +73,6 @@ "127.0.0.1:8008" = {}; }; }; - "mxisd" = { - servers = { - "127.0.0.1:8090" = {}; - }; - }; }; virtualHosts."synapse.li" = { @@ -103,8 +98,16 @@ ''; in { "/_matrix".proxyPass = "http://matrix-synapse"; - "/_matrix/identity".proxyPass = "http://mxisd"; "/_synapse/client".proxyPass = "http://matrix-synapse"; + "/_synapse/admin" = { + extraConfig = '' + allow ::1; + allow 127.0.0.0/8; + allow 2a03:4000:52:ada:1::/80; + deny all; + ''; + proxyPass = "http://matrix-synapse"; + }; "= /.well-known/matrix/server" = { extraConfig = '' default_type application/json; -- cgit v1.2.3