fra1-c: start enabling headscale
This commit is contained in:
@@ -85,6 +85,11 @@ in
|
|||||||
saslPasswdPath = config.age.secrets.sasl-passwd.path;
|
saslPasswdPath = config.age.secrets.sasl-passwd.path;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
headscale = {
|
||||||
|
enable = true;
|
||||||
|
subnetCIDR = myData.subnets.tailscale.cidr;
|
||||||
|
};
|
||||||
|
|
||||||
deployerbot = {
|
deployerbot = {
|
||||||
follower = {
|
follower = {
|
||||||
publicKeys = [ myData.hosts."fwminex.jakst.vpn".publicKey ];
|
publicKeys = [ myData.hosts."fwminex.jakst.vpn".publicKey ];
|
||||||
@@ -149,6 +154,21 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
|
caddy = {
|
||||||
|
enable = true;
|
||||||
|
email = "motiejus+acme@jakstys.lt";
|
||||||
|
globalConfig = ''
|
||||||
|
servers {
|
||||||
|
metrics {
|
||||||
|
per_host
|
||||||
|
}
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
virtualHosts = {
|
||||||
|
"vpn.jakstys.lt".extraConfig = ''reverse_proxy 127.0.0.1:${toString myData.ports.headscale}'';
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
nsd = {
|
nsd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
interfaces = [
|
interfaces = [
|
||||||
|
|||||||
Reference in New Issue
Block a user