nixos-config/hosts/x86_64-linux/beleth/conduit.nix

33 lines
807 B
Nix
Raw Permalink Normal View History

2024-09-09 20:41:48 +02:00
{
config,
lib,
inputs,
...
}: {
services.matrix-conduit = {
enable = true;
settings = {
global = {
server_name = "matrix.heroin.trade";
allow_federation = true;
allow_encryption = true;
allow_registration = false;
max_request_size = 20000000;
2024-09-10 16:04:54 +02:00
address = "::1";
2024-09-09 20:41:48 +02:00
port = 6167;
database_backend = "sqlite";
2024-09-10 16:04:54 +02:00
turn_uris = [
"turn:staticauth.openrelay.metered.ca:80?transport=udp"
"turn:staticauth.openrelay.metered.ca:80?transport=tcp"
];
turn_secret = "openrelayprojectsecret";
2024-09-09 20:41:48 +02:00
};
extraEnvironment = {
CONDUIT_MAX_CONCURRENT_REQUESTS = "100";
};
};
};
networking.firewall.allowedTCPPorts = [config.services.matrix-conduit.settings.global.port];
}