From 3747553f4c5617bf4fb431193a5315dac0323ae3 Mon Sep 17 00:00:00 2001
From: Gregor Kleen <gkleen@yggdrasil.li>
Date: Sun, 20 Nov 2022 20:20:41 +0100
Subject: ...

---
 hosts/surtr/matrix/default.nix | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'hosts')

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;
             add_header Access-Control-Allow-Headers 'X-Requested-With, Content-Type, Authorization';
             add_header Access-Control-Max-Age 7200;
           '';
-        in listToAttrs (map (n: nameValuePair n { proxyPass = "http://matrix-synapse"; extraConfig = "client_max_body_size 500M;"; }) ["/_matrix" "/_synapse/client" "/_synapse/admin"]) // {
+        in listToAttrs (map (n: nameValuePair n {
+          proxyPass = "http://matrix-synapse";
+          extraConfig = ''
+            client_max_body_size 500M;
+            proxy_pass_header Server;
+          '';
+        }) ["/_matrix" "/_synapse/client" "/_synapse/admin"]) // {
           "= /.well-known/matrix/server" = {
             extraConfig = ''
               default_type application/json;
-- 
cgit v1.2.3