add headscale
This commit is contained in:
parent
0414f6ac07
commit
d07b7c159d
2 changed files with 24 additions and 0 deletions
23
nixosConfigurations/hetzner-vpn2/headscale.nix
Normal file
23
nixosConfigurations/hetzner-vpn2/headscale.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
let
|
||||
headscale-port = 8668;
|
||||
in
|
||||
{
|
||||
services = {
|
||||
headscale = {
|
||||
enable = true;
|
||||
address = "localhost";
|
||||
port = headscale-port;
|
||||
settings = {
|
||||
dns.base_domain = "high-gravity.space";
|
||||
server_url = "https://headscale.zerforschen.plus";
|
||||
};
|
||||
};
|
||||
nginx.virtualHosts."uplink.darkest.space" = {
|
||||
addSSL = true;
|
||||
enableACME = true;
|
||||
locations = {
|
||||
"/".proxyPass = "http://localhost:${builtins.toString headscale-port}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue