coturn init

This commit is contained in:
admin 2024-03-10 22:33:51 +01:00
parent 9ae7cfc95e
commit d4a85d3d91
4 changed files with 8 additions and 10 deletions

View file

@ -27,14 +27,6 @@
# Enable networking # Enable networking
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
services.tailscale = {
enable =true;
useRoutingFeatures = "server";
extraUpFlags = [
"--advertise-exit-node"
"--exit-node"
];
};
# Set your time zone. # Set your time zone.
time.timeZone = "Europe/Stockholm"; time.timeZone = "Europe/Stockholm";

View file

@ -8,7 +8,7 @@
max-port = 50000; max-port = 50000;
use-auth-secret = true; use-auth-secret = true;
static-auth-secret-file = "/etc/nixos/.secrets/coturn.secret"; static-auth-secret-file = "/etc/nixos/.secrets/coturn.secret";
realm = "turn.example.com"; realm = "turn.sondell.org";
cert = "${config.security.acme.certs.${realm}.directory}/full.pem"; cert = "${config.security.acme.certs.${realm}.directory}/full.pem";
pkey = "${config.security.acme.certs.${realm}.directory}/key.pem"; pkey = "${config.security.acme.certs.${realm}.directory}/key.pem";
extraConfig = '' extraConfig = ''

View file

@ -14,6 +14,8 @@
./jellyfin.nix ./jellyfin.nix
./filebrowser.nix ./filebrowser.nix
./matrix.nix ./matrix.nix
./tail.nix
./coturn.nix
]; ];
}; };

View file

@ -3,5 +3,9 @@
services.tailscale = { services.tailscale = {
enable =true; enable =true;
useRoutingFeatures = "both"; useRoutingFeatures = "both";
extraUpFlags = [
"--advertise-exit-node"
"--exit-node"
];
}; };
} }