Config coturn
This commit is contained in:
parent
9710cae748
commit
b08a27c475
8 changed files with 122 additions and 88 deletions
|
|
@ -1,8 +1,15 @@
|
|||
{config, ...}: let
|
||||
hn = config.networking.hostName;
|
||||
in {
|
||||
{config, ...}: {
|
||||
networking = {
|
||||
firewall.allowedTCPPorts = with config.constants.port; [http https];
|
||||
firewall = with config.constants.port; {
|
||||
allowedTCPPorts = [coturn coturn-tls http https];
|
||||
allowedUDPPorts = [coturn coturn-tls];
|
||||
allowedUDPPortRanges = [
|
||||
{
|
||||
from = coturn-relay-udp-min;
|
||||
to = coturn-relay-udp-max;
|
||||
}
|
||||
];
|
||||
};
|
||||
hostId = "2cadb253";
|
||||
nftables.enable = true;
|
||||
};
|
||||
|
|
@ -10,11 +17,11 @@ in {
|
|||
services = {
|
||||
cloudflare-dyndns = {
|
||||
enable = true;
|
||||
apiTokenFile = config.sops.secrets."cloudflare/${hn}".path;
|
||||
apiTokenFile = config.sops.secrets.cloudflare.path;
|
||||
domains = builtins.attrNames config.services.caddy.virtualHosts;
|
||||
};
|
||||
openssh.enable = true;
|
||||
};
|
||||
|
||||
sops.secrets."cloudflare/${hn}" = {};
|
||||
sops.secrets.cloudflare = {};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue