forked from fi/nix-infra
Rename nixos-coturn to coturn and finish config
This commit is contained in:
parent
d625f3f887
commit
8b6d09def8
8 changed files with 49 additions and 21 deletions
22
hosts/coturn/configuration.nix
Normal file
22
hosts/coturn/configuration.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
device = "/dev/vda";
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "coturn";
|
||||
firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 80 3478 5349 ];
|
||||
allowedUDPPorts = [ 3478 5349 ];
|
||||
allowedUDPPortRanges = [{
|
||||
from = config.services.coturn.min-port;
|
||||
to = config.services.coturn.max-port;
|
||||
}];
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue