nixos-config/linux/nebula/conduit.nix

20 lines
559 B
Nix
Raw Normal View History

2024-08-14 11:14:20 -07:00
{config, ...}: {
2024-08-31 23:53:22 -07:00
services.matrix-conduit = with config.constants; {
enable = true;
settings.global = {
address = wildcard;
port = port.conduit;
# Use secret file when possible
turn_secret = "84EoJSEVnlH@eiqqV7K!2vmAr^G";
turn_uris = let
coturn-realm = "turn.${domain}";
in [
"turn:${coturn-realm}:${toString port.coturn-tls}?transport=udp"
"turn:${coturn-realm}:${toString port.coturn-tls}?transport=tcp"
];
turn_user_lifetime = "1h";
server_name = domain;
2023-10-09 10:44:07 -07:00
};
};
}