2024-12-16 22:40:25 -05:00
|
|
|
{inputs, ...}: {
|
2023-09-23 20:53:45 -04:00
|
|
|
networking.firewall.allowedTCPPorts = [6167 8448];
|
|
|
|
services.matrix-conduit = {
|
|
|
|
enable = true;
|
2024-12-16 22:40:25 -05:00
|
|
|
package = inputs.conduwuit.packages.x86_64-linux.default;
|
2023-09-23 20:53:45 -04:00
|
|
|
settings = {
|
|
|
|
global = {
|
|
|
|
address = "0.0.0.0";
|
2023-10-03 14:24:26 -04:00
|
|
|
server_name = "matrix.flake.sh";
|
2024-12-16 22:40:25 -05:00
|
|
|
allow_registration = false;
|
2023-11-26 02:10:32 -05:00
|
|
|
allow_federation = true;
|
2023-09-23 20:53:45 -04:00
|
|
|
allow_encryption = true;
|
2024-12-16 22:40:25 -05:00
|
|
|
log = "info";
|
2023-09-28 17:06:40 -04:00
|
|
|
max_concurrent_requests = 100;
|
|
|
|
max_request_size = 20000000;
|
|
|
|
database_backend = "rocksdb";
|
|
|
|
enable_lightning_bolt = false;
|
2023-09-23 20:53:45 -04:00
|
|
|
trusted_servers = ["matrix.org"];
|
2024-12-16 22:40:25 -05:00
|
|
|
url_preview_domain_contains_allowlist = ["*"];
|
|
|
|
well_known = {
|
|
|
|
client = "https://matrix.flake.sh";
|
|
|
|
server = "matrix.flake.sh:443";
|
|
|
|
};
|
2023-09-23 20:53:45 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|