diff --git a/hosts/linode/default.nix b/hosts/linode/default.nix index f55d93c..b443e07 100644 --- a/hosts/linode/default.nix +++ b/hosts/linode/default.nix @@ -5,10 +5,10 @@ ./git.nix ./hardware-configuration.nix ./podman.nix + ./matrix.nix ./nextcloud.nix ./nginx.nix ./postgres.nix - ./synapse.nix ]; greg = { diff --git a/hosts/linode/synapse.nix b/hosts/linode/matrix.nix similarity index 81% rename from hosts/linode/synapse.nix rename to hosts/linode/matrix.nix index 380ab11..81b26eb 100644 --- a/hosts/linode/synapse.nix +++ b/hosts/linode/matrix.nix @@ -48,22 +48,7 @@ return 200 '${builtins.toJSON client}'; locations."/".extraConfig = "return 404;"; locations."/_matrix" = { - proxyPass = "http://127.0.0.1:8448"; # Lacking the trailing / is correct - }; - }; - - # Run Element web - "chat.${fqdn}" = { - enableACME = true; - forceSSL = true; - serverAliases = [ - "chat.${domain}" - ]; - root = pkgs.element-web.override { - conf.default_server_config."m.homeserver" = { - "base_url" = "https://${fqdn}"; - "server_name" = "${fqdn}"; - }; + proxyPass = "http://matrix.shire-zebra.ts.net:8448"; # Lacking the trailing / is correct }; }; };