From 2edeb54ab9c8897c15e4d710a947e2759048167c Mon Sep 17 00:00:00 2001 From: niten Date: Wed, 13 Sep 2023 15:48:38 -0700 Subject: [PATCH] 404 if not a matrix request --- matrix-module.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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; }; }; };