From b4f449899af68b28999ee3cd50857f7920afabcb Mon Sep 17 00:00:00 2001 From: tzlil Date: Fri, 21 Apr 2023 19:44:50 +0300 Subject: add matrix well-known to webserver --- hosts/vps/matrix.nix | 9 +++++---- 1 file 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]; -- cgit 1.4.1