matrix: Removed webUI. Cleaned up module.
This commit is contained in:
parent
705c254da2
commit
ac52491299
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
let
|
let
|
||||||
domain = "runas.rocks";
|
domain = "runas.rocks";
|
||||||
webui_domain = "webchat.runas.rocks";
|
|
||||||
network = import ./network.nix;
|
network = import ./network.nix;
|
||||||
db_name = "matrix-synapse-runas.rocks";
|
db_name = "matrix-synapse-runas.rocks";
|
||||||
in
|
in
|
||||||
@ -22,8 +21,6 @@ in
|
|||||||
password_config.enabled = false;
|
password_config.enabled = false;
|
||||||
app_service_config_files = [
|
app_service_config_files = [
|
||||||
"/var/lib/matrix-synapse/discord-registration.yaml"
|
"/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}" ];
|
auto_join_rooms = [ "#general:${domain}" "#music:${domain}" "#movies:${domain}" ];
|
||||||
@ -110,42 +107,13 @@ in
|
|||||||
proxyPass = "http://127.0.0.1:8008"; # without a trailing /
|
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 = ''
|
networking.extraHosts = ''
|
||||||
${network.architect-lan} ${lib.concatStringsSep " " [ domain webui_domain]}
|
${network.architect-lan} ${domain}
|
||||||
${network.architect-wg} ${lib.concatStringsSep " " [ domain webui_domain ]}
|
${network.architect-wg} ${domain}
|
||||||
${network.architect-ts} ${lib.concatStringsSep " " [ domain webui_domain ]}
|
${network.architect-ts} ${domain}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user