1
0
Fork 0
forked from fi/nix-infra

Rename nixos-coturn to coturn and finish config

This commit is contained in:
fi 2023-08-07 22:12:36 +02:00
commit 8b6d09def8
Signed by: fi
SSH key fingerprint: SHA256:d+6fQoDPMbSFK95zRVflRKZLRKF4cPSQb7VIxYkhFsA
8 changed files with 49 additions and 21 deletions

View 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";
}