summaryrefslogtreecommitdiff
path: root/hosts/surtr
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/surtr')
-rw-r--r--hosts/surtr/matrix/default.nix15
1 files changed, 9 insertions, 6 deletions
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 @@
73 "127.0.0.1:8008" = {}; 73 "127.0.0.1:8008" = {};
74 }; 74 };
75 }; 75 };
76 "mxisd" = {
77 servers = {
78 "127.0.0.1:8090" = {};
79 };
80 };
81 }; 76 };
82 77
83 virtualHosts."synapse.li" = { 78 virtualHosts."synapse.li" = {
@@ -103,8 +98,16 @@
103 ''; 98 '';
104 in { 99 in {
105 "/_matrix".proxyPass = "http://matrix-synapse"; 100 "/_matrix".proxyPass = "http://matrix-synapse";
106 "/_matrix/identity".proxyPass = "http://mxisd";
107 "/_synapse/client".proxyPass = "http://matrix-synapse"; 101 "/_synapse/client".proxyPass = "http://matrix-synapse";
102 "/_synapse/admin" = {
103 extraConfig = ''
104 allow ::1;
105 allow 127.0.0.0/8;
106 allow 2a03:4000:52:ada:1::/80;
107 deny all;
108 '';
109 proxyPass = "http://matrix-synapse";
110 };
108 "= /.well-known/matrix/server" = { 111 "= /.well-known/matrix/server" = {
109 extraConfig = '' 112 extraConfig = ''
110 default_type application/json; 113 default_type application/json;