feat(matrix): improve dendrite & element config
This commit is contained in:
parent
1e229baafd
commit
d20e8f5cd2
2 changed files with 29 additions and 20 deletions
|
@ -1,6 +1,8 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
let inherit (config.services.dendrite.settings.global) server_name;
|
||||
let
|
||||
inherit (config.services.dendrite.settings.global) server_name;
|
||||
matrix_host = "matrix.${server_name}";
|
||||
in {
|
||||
services.nginx.virtualHosts."element.felschr.com" = {
|
||||
forceSSL = true;
|
||||
|
@ -8,8 +10,8 @@ in {
|
|||
root = pkgs.element-web.override {
|
||||
conf = {
|
||||
default_server_config."m.homeserver" = {
|
||||
"base_url" = "https://matrix.${server_name}";
|
||||
"server_name" = "${server_name}";
|
||||
base_url = "https://${matrix_host}";
|
||||
server_name = "${server_name}";
|
||||
};
|
||||
disable_guests = true;
|
||||
features = {
|
||||
|
@ -19,7 +21,13 @@ in {
|
|||
feature_group_calls = true;
|
||||
};
|
||||
show_labs_settings = true;
|
||||
roomDirectory.servers = [ "matrix.org" "gitter.im" "libera.chat" ];
|
||||
roomDirectory.servers =
|
||||
[ server_name "matrix.org" "gitter.im" "libera.chat" ];
|
||||
enable_presence_by_hs_url = {
|
||||
"https://${matrix_host}" = false;
|
||||
"https://matrix.org" = false;
|
||||
"https://matrix-client.matrix.org" = false;
|
||||
};
|
||||
jitsi.preferred_domain = "meet.element.io";
|
||||
element_call.url = "https://call.element.io";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue