From d4a85d3d9186beb7ff2823bceba8d670f7adb85d Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 10 Mar 2024 22:33:51 +0100 Subject: [PATCH] coturn init --- configuration.nix | 8 -------- coturn.nix | 2 +- flake.nix | 2 ++ tail.nix | 6 +++++- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/configuration.nix b/configuration.nix index 0a9b988..5b86ee0 100644 --- a/configuration.nix +++ b/configuration.nix @@ -27,14 +27,6 @@ # Enable networking networking.networkmanager.enable = true; - services.tailscale = { - enable =true; - useRoutingFeatures = "server"; - extraUpFlags = [ - "--advertise-exit-node" - "--exit-node" - ]; - }; # Set your time zone. time.timeZone = "Europe/Stockholm"; diff --git a/coturn.nix b/coturn.nix index 235aa64..6354b40 100644 --- a/coturn.nix +++ b/coturn.nix @@ -8,7 +8,7 @@ max-port = 50000; use-auth-secret = true; 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"; pkey = "${config.security.acme.certs.${realm}.directory}/key.pem"; extraConfig = '' diff --git a/flake.nix b/flake.nix index c8e6bdc..b4b2d7c 100644 --- a/flake.nix +++ b/flake.nix @@ -14,6 +14,8 @@ ./jellyfin.nix ./filebrowser.nix ./matrix.nix + ./tail.nix + ./coturn.nix ]; }; diff --git a/tail.nix b/tail.nix index bc3dc2e..acdd2bb 100644 --- a/tail.nix +++ b/tail.nix @@ -1,7 +1,11 @@ { config, ... }: { services.tailscale = { - enable = true; + enable =true; useRoutingFeatures = "both"; + extraUpFlags = [ + "--advertise-exit-node" + "--exit-node" + ]; }; }