diff options
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]; |