summary refs log tree commit diff
path: root/hosts/vps/services/matrix.nix
diff options
context:
space:
mode:
authortzlil <tzlils@protonmail.com>2024-02-26 19:43:39 +0200
committertzlil <tzlils@protonmail.com>2024-02-26 19:43:39 +0200
commit08c4cb2247461fe36b2e7d7456aef0d17acd26af (patch)
tree96801ac3d455833e7cfd07027a5bd9f2f393308f /hosts/vps/services/matrix.nix
parent00db7aca343a925220b17223b02dfb79b05f597c (diff)
idk what tehf uck i changed
Diffstat (limited to 'hosts/vps/services/matrix.nix')
-rw-r--r--hosts/vps/services/matrix.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/hosts/vps/services/matrix.nix b/hosts/vps/services/matrix.nix
index a3be7a2..a56b489 100644
--- a/hosts/vps/services/matrix.nix
+++ b/hosts/vps/services/matrix.nix
@@ -136,10 +136,11 @@
       '';
       # for clients
       virtualHosts."tzlil.net".extraConfig = ''
-        reverse_proxy /_matrix/* localhost:8008
-        header /.well-known/matrix/* Content-Type application/json
-        header /.well-known/matrix/* Access-Control-Allow-Origin *
-        respond /.well-known/matrix/server `{"m.server": "tzlil.net"}`
+               reverse_proxy /_matrix/* localhost:8008
+               header /.well-known/matrix/* Content-Type application/json
+               header /.well-known/matrix/* Access-Control-Allow-Origin *
+               respond /.well-known/matrix/server `{"m.server": "tzlil.net"}`
+        respond /.well-known/matrix/client `{"m.homeserver": {"base_url": "https://tzlil.net"}}`
       '';
     };
     networking.firewall.allowedTCPPorts = [8448];