mirror of
https://github.com/callumio/nixfiles.git
synced 2025-12-17 03:29:20 +00:00
tailscale
This commit is contained in:
parent
961d41b9bf
commit
c558bad713
15 changed files with 106 additions and 15 deletions
20
hosts/hermes/headscale.nix
Normal file
20
hosts/hermes/headscale.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{config, ...}: let
|
||||
domain = "mesh.cleslie.uk";
|
||||
in {
|
||||
services = {
|
||||
headscale = {
|
||||
enable = true;
|
||||
address = "0.0.0.0";
|
||||
port = 8080;
|
||||
settings = {
|
||||
server_url = "https://${domain}";
|
||||
dns_config = {base_domain = "cleslie.uk";};
|
||||
|
||||
ip_prefixes = "100.64.0.0/10";
|
||||
};
|
||||
};
|
||||
caddy.virtualHosts.${domain}.extraConfig = ''
|
||||
reverse_proxy localhost:${toString config.services.headscale.port}
|
||||
'';
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue