From 86a55f471d4e9d9b4efa4387192b77c03b21a93f Mon Sep 17 00:00:00 2001 From: RGBCube Date: Thu, 18 Jan 2024 07:45:42 +0300 Subject: [PATCH] Don't actually host element --- hosts/cube/matrix-synapse.nix | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/hosts/cube/matrix-synapse.nix b/hosts/cube/matrix-synapse.nix index 8d1d3ac..d835ddc 100644 --- a/hosts/cube/matrix-synapse.nix +++ b/hosts/cube/matrix-synapse.nix @@ -16,7 +16,6 @@ let synapsePort = 8001; slidingSyncPort = 8002; - exporterPort = 9060; in serverSystemConfiguration { age.secrets."cube/password.secret.matrix-synapse".owner = "matrix-synapse"; age.secrets."cube/password.sync.matrix-synapse".owner = "matrix-synapse"; @@ -101,12 +100,8 @@ in serverSystemConfiguration { forceSSL = true; useACMEHost = domain; - locations."/".root = pkgs.element-web.override { - conf = { - default_server_name = chatDomain; - sso_redirect_options.immediate = true; - }; - }; + locations."/".proxyPass = "http://[::]${toString config.services.site.port}/404"; + locations."/assets".proxyPass = "http://[::]${toString config.services.site.port}/assets"; locations."= /.well-known/matrix/client".extraConfig = wellKnownResponse clientConfig; locations."= /.well-known/matrix/server".extraConfig = wellKnownResponse serverConfig;