From 5c6d293338ba080fa9ea8e6fc390d295e7599302 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Thu, 18 Jan 2024 08:39:22 +0300 Subject: [PATCH] Make index of syncDomain return 404 --- hosts/cube/matrix-synapse.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/cube/matrix-synapse.nix b/hosts/cube/matrix-synapse.nix index d216fff..a9f5d7d 100644 --- a/hosts/cube/matrix-synapse.nix +++ b/hosts/cube/matrix-synapse.nix @@ -118,6 +118,9 @@ in serverSystemConfiguration { forceSSL = true; useACMEHost = domain; + locations."/".proxyPass = "http://[::]:${toString config.services.site.port}/404"; + locations."/assets".proxyPass = "http://[::]:${toString config.services.site.port}/assets"; + locations."~ ^/(client/|_matrix/client/unstable/org.matrix.msc3575/sync)" .proxyPass = "http://[::]:${toString synapsePort}";