From ac524912994b952faa573112e2dad37ebba7d740 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Mon, 10 Apr 2023 19:34:46 +0200 Subject: [PATCH] matrix: Removed webUI. Cleaned up module. --- hosts/architect/matrix.nix | 38 +++----------------------------------- 1 file changed, 3 insertions(+), 35 deletions(-) diff --git a/hosts/architect/matrix.nix b/hosts/architect/matrix.nix index 5c912b8..19feccb 100644 --- a/hosts/architect/matrix.nix +++ b/hosts/architect/matrix.nix @@ -2,7 +2,6 @@ let domain = "runas.rocks"; - webui_domain = "webchat.runas.rocks"; network = import ./network.nix; db_name = "matrix-synapse-runas.rocks"; in @@ -22,8 +21,6 @@ in password_config.enabled = false; app_service_config_files = [ "/var/lib/matrix-synapse/discord-registration.yaml" - # "/var/lib/matrix-synapse/hookshot-registration.yml" - # "/var/lib/matrix-synapse/telegram-registration.yaml" ]; auto_join_rooms = [ "#general:${domain}" "#music:${domain}" "#movies:${domain}" ]; @@ -110,42 +107,13 @@ in proxyPass = "http://127.0.0.1:8008"; # without a trailing / }; }; - - # web client - "${webui_domain}" = { - enableACME = true; - forceSSL = true; - - root = pkgs.element-web.override { - conf = { - default_server_config."m.homeserver" = { - "base_url" = "https://${domain}"; - "server_name" = "${domain}"; - }; - }; - }; - }; - }; - - # discord bridge - matrix-appservice-discord = { - enable = true; - environmentFile = /secrets/matrix-appservice-discord/tokens.env; - # The appservice is pre-configured to use SQLite by default. - # It's also possible to use PostgreSQL. - settings = { - bridge = { - inherit domain; - homeserverUrl = "https://${domain}"; - }; - }; }; }; networking.extraHosts = '' - ${network.architect-lan} ${lib.concatStringsSep " " [ domain webui_domain]} - ${network.architect-wg} ${lib.concatStringsSep " " [ domain webui_domain ]} - ${network.architect-ts} ${lib.concatStringsSep " " [ domain webui_domain ]} + ${network.architect-lan} ${domain} + ${network.architect-wg} ${domain} + ${network.architect-ts} ${domain} ''; }