Fix coturn config

This commit is contained in:
Paul-Henri Froidmont 2022-08-06 00:00:21 +02:00
parent 06db507c8e
commit 98c53107c3
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE

View file

@ -193,21 +193,20 @@ in
'';
};
networking.firewall = {
interfaces.enp2s0 =
let
range = with config.services.coturn; [{
from = min-port;
to = max-port;
}];
in
{
allowedUDPPortRanges = range;
allowedUDPPorts = [ 3478 ];
allowedTCPPortRanges = range;
allowedTCPPorts = [ 3478 ];
};
};
networking.firewall =
let
range = with config.services.coturn; [{
from = min-port;
to = max-port;
}];
in
{
allowedUDPPortRanges = range;
allowedUDPPorts = [ 3478 ];
allowedTCPPortRanges = range;
allowedTCPPorts = [ 3478 ];
};
security.acme.certs.${config.services.coturn.realm} = {
postRun = "systemctl restart coturn.service";