From d6ac70abab40d5e0b741bcf7f39503079e69952b Mon Sep 17 00:00:00 2001 From: Johannes Rothe Date: Sun, 17 Nov 2024 23:03:54 +0100 Subject: [PATCH] Configure headscale on VPS --- vps-configuration.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/vps-configuration.nix b/vps-configuration.nix index 1f24ddf..6c04ee5 100644 --- a/vps-configuration.nix +++ b/vps-configuration.nix @@ -25,6 +25,17 @@ trustedInterfaces = [ "tailscale0" ]; }; + services.headscale = { + enable = true; + address = "0.0.0.0"; + port = 8080; + settings = { + dns_config.base_domain= "johannes-rothe.de"; + server_url = "https://headscale.johannes-rothe.de"; + }; + }; + + services.caddy = { enable = true; email = lib.strings.concatStrings ["mail" "@" "johannes-rothe.de"]; @@ -44,6 +55,9 @@ "git.johannes-rothe.de".extraConfig = '' reverse_proxy base:3001 ''; + #"headscale.johannes-rothe.de".extraConfig = '' + # reverse_proxy base:5232 + #''; "radicale.johannes-rothe.de".extraConfig = '' reverse_proxy base:5232 '';