nixos-config/linux/nebula/conduit.nix

25 lines
600 B
Nix
Raw Normal View History

2024-08-14 11:14:20 -07:00
{config, ...}: {
2024-08-31 21:13:43 -07:00
services = with config.constants; {
coturn = {
enable = true;
realm = localhost;
static-auth-secret-file = config.sops.secrets.coturn.path;
use-auth-secret = true;
};
matrix-conduit = {
enable = true;
settings.global = {
address = wildcard;
port = port.conduit;
turn_secret = "TbbL8a4tsv6HkR9esjkPa4$fTKX";
turn_uris = [
"turn:${localhost}?transport=udp"
"turn:${localhost}?transport=tcp"
];
server_name = domain;
};
2023-10-09 10:44:07 -07:00
};
};
2024-08-31 21:13:43 -07:00
sops.secrets.coturn = {};
2023-10-09 10:44:07 -07:00
}