mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 04:19:19 -08:00
feat: move from element to cinny for webui
This commit is contained in:
parent
96f9cf36b6
commit
6755dc9ff8
1 changed files with 8 additions and 7 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue