matrix: Add coturn support for calls

This commit is contained in:
Tristan Daniël Maat 2022-10-29 00:13:44 +01:00
parent 7fb5aac33e
commit c72953e1ef
Signed by: tlater
GPG key ID: 49670FD774E43268
5 changed files with 114 additions and 17 deletions
configuration

View file

@ -1,4 +1,5 @@
{
config,
pkgs,
lib,
modulesPath,
@ -50,17 +51,34 @@
useDHCP = false;
interfaces.eth0.useDHCP = true;
firewall.allowedTCPPorts = [
# http
80
443
# ssh
2222
# matrix
8448
# starbound
21025
];
firewall = {
allowedTCPPorts = [
# http
80
443
# ssh
2222
# matrix
8448
# starbound
21025
config.services.coturn.listening-port
config.services.coturn.tls-listening-port
];
allowedUDPPorts = [
config.services.coturn.listening-port
config.services.coturn.tls-listening-port
];
allowedUDPPortRanges = [
{
from = config.services.coturn.min-port;
to = config.services.coturn.max-port;
}
];
};
};
time.timeZone = "Europe/London";