mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 05:36:59 +01:00
Fix coturn config
This commit is contained in:
parent
06db507c8e
commit
98c53107c3
1 changed files with 14 additions and 15 deletions
|
|
@ -193,21 +193,20 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall = {
|
networking.firewall =
|
||||||
interfaces.enp2s0 =
|
let
|
||||||
let
|
range = with config.services.coturn; [{
|
||||||
range = with config.services.coturn; [{
|
from = min-port;
|
||||||
from = min-port;
|
to = max-port;
|
||||||
to = max-port;
|
}];
|
||||||
}];
|
in
|
||||||
in
|
{
|
||||||
{
|
allowedUDPPortRanges = range;
|
||||||
allowedUDPPortRanges = range;
|
allowedUDPPorts = [ 3478 ];
|
||||||
allowedUDPPorts = [ 3478 ];
|
allowedTCPPortRanges = range;
|
||||||
allowedTCPPortRanges = range;
|
allowedTCPPorts = [ 3478 ];
|
||||||
allowedTCPPorts = [ 3478 ];
|
};
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
security.acme.certs.${config.services.coturn.realm} = {
|
security.acme.certs.${config.services.coturn.realm} = {
|
||||||
postRun = "systemctl restart coturn.service";
|
postRun = "systemctl restart coturn.service";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue