diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-27 16:38:46 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2022-02-27 16:38:46 +0100 |
commit | 11b6a36595e360aa5115a2765df68c6065945e26 (patch) | |
tree | 7f1c90e3f245c80c9436c9b80c83930ffd8d1b7e /hosts/surtr | |
parent | f1f0f280068592d606c2cec9741ae1d10d0e4583 (diff) | |
download | nixos-11b6a36595e360aa5115a2765df68c6065945e26.tar nixos-11b6a36595e360aa5115a2765df68c6065945e26.tar.gz nixos-11b6a36595e360aa5115a2765df68c6065945e26.tar.bz2 nixos-11b6a36595e360aa5115a2765df68c6065945e26.tar.xz nixos-11b6a36595e360aa5115a2765df68c6065945e26.zip |
surtr: matrix: ...
Diffstat (limited to 'hosts/surtr')
-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; |