diff --git a/matrix-module.nix b/matrix-module.nix index 24e0442..90f5698 100644 --- a/matrix-module.nix +++ b/matrix-module.nix @@ -165,10 +165,16 @@ in { ssl = true; } ]; - locations."/" = { + locations."/".extraConfig = "return 404;"; + locations."/_matrix" = { proxyPass = "http://localhost:${toString cfg.port}"; - proxyWebsockets = true; recommendedProxySettings = true; + proxyWebsockets = true; + }; + locations."/_synapse/client" = { + proxyPass = "http://localhost:${toString cfg.port}"; + recommendedProxySettings = true; + proxyWebsockets = true; }; }; };