moved nginx to headscale file; added derp autoupdate

This commit is contained in:
Nickiel12 2023-10-21 16:55:52 -07:00
parent 41b969d123
commit ad47d8d2bd
2 changed files with 15 additions and 9 deletions

View file

@ -18,7 +18,22 @@ in {
base_domain = baseDomain;
extra_records = tailscale_dns_entries;
};
derp = {
auto_update_enable = true;
update_frequency = "24h";
};
};
};
environment.systemPackages = [ config.services.headscale.package ];
services.nginx.virtualHosts = {
"headscale.nickiel.net" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${ toString config.services.headscale.port }";
proxyWebsockets = true;
};
};
};
}

View file

@ -50,15 +50,6 @@
locations."/".proxyPass = "http://127.0.0.1:3001";
};
"headscale.nickiel.net" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${ toString config.services.headscale.port }";
proxyWebsockets = true;
};
};
};
};
}