Configure headscale on VPS

This commit is contained in:
Johannes Rothe 2024-11-17 23:03:54 +01:00
parent 57042de338
commit d6ac70abab

View File

@ -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
'';