matrix: add hosted Element web setup

This commit is contained in:
Antoine Martin 2021-01-29 14:32:43 +01:00
parent 79aa31f07f
commit 84fff7a6f2

View file

@ -126,6 +126,36 @@ in {
return 200 '${builtins.toJSON client}'; return 200 '${builtins.toJSON client}';
''; '';
}; };
# Element Web app deployment
#
"chat.${domain}" = {
enableACME = true;
forceSSL = true;
root = pkgs.element-web.override {
conf = {
default_server_config = {
"m.homeserver" = {
"base_url" = "https://matrix.${domain}";
"server_name" = "${domain}";
};
"m.identity_server" = {
"base_url" = "https://vector.im";
};
};
showLabsSettings = true;
defaultCountryCode = "FR"; # cocorico
roomDirectory = {
"servers" = [
"matrix.org"
"mozilla.org"
"prologin.org"
];
};
};
};
};
}; };
}; };