summaryrefslogtreecommitdiff
path: root/hosts/surtr/matrix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2022-11-20 20:20:41 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2022-11-20 20:20:41 +0100
commit3747553f4c5617bf4fb431193a5315dac0323ae3 (patch)
treea6b90720d0a4024b0fdea72af04257680dbb95f0 /hosts/surtr/matrix
parente0837ed40d0278b0371822bf2bb864abd9d10db7 (diff)
downloadnixos-3747553f4c5617bf4fb431193a5315dac0323ae3.tar
nixos-3747553f4c5617bf4fb431193a5315dac0323ae3.tar.gz
nixos-3747553f4c5617bf4fb431193a5315dac0323ae3.tar.bz2
nixos-3747553f4c5617bf4fb431193a5315dac0323ae3.tar.xz
nixos-3747553f4c5617bf4fb431193a5315dac0323ae3.zip
...
Diffstat (limited to 'hosts/surtr/matrix')
-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;