Server: add headscale
This commit is contained in:
parent
59692e7651
commit
dfd094ef67
2 changed files with 17 additions and 0 deletions
|
|
@ -11,6 +11,7 @@
|
||||||
./ddclient.nix
|
./ddclient.nix
|
||||||
./beep.nix
|
./beep.nix
|
||||||
./tailscale.nix
|
./tailscale.nix
|
||||||
|
./headscale.nix
|
||||||
./caddy.nix
|
./caddy.nix
|
||||||
./dns.nix
|
./dns.nix
|
||||||
./rust_motd.nix
|
./rust_motd.nix
|
||||||
|
|
|
||||||
16
roles/server/headscale.nix
Normal file
16
roles/server/headscale.nix
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
{...}: {
|
||||||
|
services.headscale = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
server_url = "https://headscale.toast003.xyz";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
services.caddy = {
|
||||||
|
virtualHosts.headscale = {
|
||||||
|
hostName = "headscale.toast003.xyz";
|
||||||
|
extraConfig = ''
|
||||||
|
reverse_proxy localhost:8080
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue