From 11b6a36595e360aa5115a2765df68c6065945e26 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 27 Feb 2022 16:38:46 +0100 Subject: surtr: matrix: ... --- hosts/surtr/matrix/default.nix | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'hosts/surtr/matrix') diff --git a/hosts/surtr/matrix/default.nix b/hosts/surtr/matrix/default.nix index 952c8b24..01ea2aee 100644 --- a/hosts/surtr/matrix/default.nix +++ b/hosts/surtr/matrix/default.nix @@ -96,18 +96,7 @@ add_header Access-Control-Allow-Headers 'X-Requested-With, Content-Type, Authorization'; add_header Access-Control-Max-Age 7200; ''; - in { - "/_matrix".proxyPass = "http://matrix-synapse"; - "/_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"; - }; + in listToAttrs (map (n: nameValuePair n { proxyPass = "http://matrix-synapse"; }) ["_matrix" "_synapse/client" "_synapse/admin"]) // { "= /.well-known/matrix/server" = { extraConfig = '' default_type application/json; -- cgit v1.2.3