summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/surtr/matrix/default.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/hosts/surtr/matrix/default.nix b/hosts/surtr/matrix/default.nix
index f5a411ac..df044622 100644
--- a/hosts/surtr/matrix/default.nix
+++ b/hosts/surtr/matrix/default.nix
@@ -167,7 +167,13 @@ with lib;
167 add_header Access-Control-Allow-Headers 'X-Requested-With, Content-Type, Authorization'; 167 add_header Access-Control-Allow-Headers 'X-Requested-With, Content-Type, Authorization';
168 add_header Access-Control-Max-Age 7200; 168 add_header Access-Control-Max-Age 7200;
169 ''; 169 '';
170 in listToAttrs (map (n: nameValuePair n { proxyPass = "http://matrix-synapse"; extraConfig = "client_max_body_size 500M;"; }) ["/_matrix" "/_synapse/client" "/_synapse/admin"]) // { 170 in listToAttrs (map (n: nameValuePair n {
171 proxyPass = "http://matrix-synapse";
172 extraConfig = ''
173 client_max_body_size 500M;
174 proxy_pass_header Server;
175 '';
176 }) ["/_matrix" "/_synapse/client" "/_synapse/admin"]) // {
171 "= /.well-known/matrix/server" = { 177 "= /.well-known/matrix/server" = {
172 extraConfig = '' 178 extraConfig = ''
173 default_type application/json; 179 default_type application/json;