nixos-configuration/nixosConfigurations/hetzner-vpn2/headscale.nix
Vinzenz Schroeter 594e6118eb force ssl
2026-01-04 20:54:55 +01:00

27 lines
588 B
Nix

let
headscale-port = 8668;
in
{
services = {
headscale = {
enable = true;
address = "localhost";
port = headscale-port;
settings = {
server_url = "https://uplink.darkest.space/";
dns = {
override_local_dns = false;
base_domain = "high-gravity.space";
};
};
};
nginx.virtualHosts."uplink.darkest.space" = {
addSSL = true;
enableACME = true;
forceSSL = true;
locations = {
"/".proxyPass = "http://localhost:${builtins.toString headscale-port}";
};
};
};
}