snowflake/hosts/sakura/services/matrix.nix

29 lines
904 B
Nix

{pkgs, ...}: {
networking.firewall.allowedTCPPorts = [6167 8448];
services.matrix-conduit = {
enable = true;
package = pkgs.conduwuit;
settings = {
global = {
address = "0.0.0.0";
server_name = "matrix.flake.sh";
allow_registration = false;
allow_federation = true;
allow_encryption = true;
max_concurrent_requests = 100;
max_request_size = 20000000;
database_backend = "rocksdb";
enable_lightning_bolt = false;
trusted_servers = ["matrix.org"];
url_preview_domain_contains_allowlist = ["*"];
new_user_displayname_suffix = "";
# yes_i_am_very_very_sure_i_want_an_open_registration_server_prone_to_abuse = true;
log = "info";
well_known = {
client = "https://matrix.flake.sh";
server = "matrix.flake.sh:443";
};
};
};
};
}