summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-02-27 16:36:30 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-02-27 16:36:30 +0100
commitf1f0f280068592d606c2cec9741ae1d10d0e4583 (patch)
treed59fa04d3dbae3fa0bbe176902037a1b354a1764 /hosts
parent2434c2847dae5688ec6b7795091c8d0a57548d3f (diff)
downloadnixos-f1f0f280068592d606c2cec9741ae1d10d0e4583.tar
nixos-f1f0f280068592d606c2cec9741ae1d10d0e4583.tar.gz
nixos-f1f0f280068592d606c2cec9741ae1d10d0e4583.tar.bz2
nixos-f1f0f280068592d606c2cec9741ae1d10d0e4583.tar.xz
nixos-f1f0f280068592d606c2cec9741ae1d10d0e4583.zip
surtr: matrix: ...
Diffstat (limited to 'hosts')
-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;