diff options
Diffstat (limited to 'hosts/surtr/matrix/default.nix')
-rw-r--r-- | hosts/surtr/matrix/default.nix | 13 |
1 files changed, 1 insertions, 12 deletions
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 @@ | |||
96 | add_header Access-Control-Allow-Headers 'X-Requested-With, Content-Type, Authorization'; | 96 | add_header Access-Control-Allow-Headers 'X-Requested-With, Content-Type, Authorization'; |
97 | add_header Access-Control-Max-Age 7200; | 97 | add_header Access-Control-Max-Age 7200; |
98 | ''; | 98 | ''; |
99 | in { | 99 | in listToAttrs (map (n: nameValuePair n { proxyPass = "http://matrix-synapse"; }) ["_matrix" "_synapse/client" "_synapse/admin"]) // { |
100 | "/_matrix".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 | }; | ||
111 | "= /.well-known/matrix/server" = { | 100 | "= /.well-known/matrix/server" = { |
112 | extraConfig = '' | 101 | extraConfig = '' |
113 | default_type application/json; | 102 | default_type application/json; |