matrix: Removed webUI. Cleaned up module.

This commit is contained in:
Giulio De Pasquale 2023-04-10 19:34:46 +02:00
parent 705c254da2
commit ac52491299

View File

@ -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}
'';
}