From ccb3560f85b698b7d97ec40334f99b1a514aa2cb Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Mon, 28 Nov 2022 16:54:46 +0900 Subject: Use nginx directly for Element New element-web derivation is wrapped and breaks the IPFS hack. --- matrix.nix | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) (limited to 'matrix.nix') diff --git a/matrix.nix b/matrix.nix index 24dc1e9..38b96ed 100644 --- a/matrix.nix +++ b/matrix.nix @@ -91,7 +91,13 @@ in { "than.${domain}" = { enableACME = true; forceSSL = true; - locations."/".proxyPass = "http://localhost:8080"; + root = pkgs.element-web.override { + conf = { + default_server_config = client; + default_theme = "dark"; + room_directory.servers = [ "loang.net" ]; + }; + }; }; }; @@ -107,16 +113,4 @@ in { package = pkgs.postgresql_14; }; }; - - users.users.root.packages = let - element-ipfs = pkgs.callPackage ./element-ipfs.nix { - conf = { - default_server_config = client; - default_theme = "dark"; - room_directory = { - servers = [ "loang.net" ]; - }; - }; - }; - in [ element-ipfs ]; } -- cgit 1.4.1