diff options
author | tzlil <tzlils@protonmail.com> | 2023-04-21 19:44:50 +0300 |
---|---|---|
committer | tzlil <tzlils@protonmail.com> | 2023-04-21 19:44:50 +0300 |
commit | b4f449899af68b28999ee3cd50857f7920afabcb (patch) | |
tree | 82dad9dd13c199886b5ef79915c374e15ed17aeb /hosts/vps | |
parent | d966108a140a0cfce10004caab18aa9c9b59d4e1 (diff) |
add matrix well-known to webserver
Diffstat (limited to 'hosts/vps')
-rw-r--r-- | hosts/vps/matrix.nix | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/hosts/vps/matrix.nix b/hosts/vps/matrix.nix index 70d6c81..f47f149 100644 --- a/hosts/vps/matrix.nix +++ b/hosts/vps/matrix.nix @@ -143,15 +143,16 @@ services.caddy = { + # for federation virtualHosts."tzlil.net:8448".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"}` ''; + # 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"}` ''; }; networking.firewall.allowedTCPPorts = [8448]; |