feat: move from element to cinny for webui

This commit is contained in:
Kat Inskip 2022-07-11 10:47:13 -07:00
parent 96f9cf36b6
commit 6755dc9ff8
Signed by: kat
GPG key ID: 465E64DECEA8CF0F

View file

@ -295,22 +295,23 @@ CONFIG = {
deploy.tf.dns.records.services_element = { deploy.tf.dns.records.services_element = {
inherit (config.network.dns) zone; inherit (config.network.dns) zone;
domain = "element"; domain = "matrix";
cname = { inherit (config.network.addresses.public) target; }; cname = { inherit (config.network.addresses.public) target; };
}; };
services.nginx.virtualHosts."element.${config.network.dns.domain}" = { services.nginx.virtualHosts."matrix.${config.network.dns.domain}" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
extraConfig = '' extraConfig = ''
keepalive_requests 100000; keepalive_requests 100000;
''; '';
root = pkgs.element-web.override { root = pkgs.cinny.override {
conf = { conf = {
default_server_config."m.homeserver" = { defaultHomeserver = 1;
"base_url" = "https://${config.network.dns.domain}:443"; homeserverList = [
"server_name" = "kittywit.ch"; "kittywit.ch"
}; ];
allowCustomHomeservers = false;
}; };
}; };
}; };