deleted headscale from lambda

This commit is contained in:
Julien Malka 2023-06-09 10:10:05 +02:00
parent 268b5c88a4
commit 53922957e7
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -147,46 +147,6 @@ VfXtULncAiEA2gmqdr+ugFz5tvPdKwanroTiMTUMhhCRYVlQlyTApyQ=
];
services.headscale = {
logLevel = "debug";
enable = true;
address = "127.0.0.1";
settings = {
dns_config = {
override_local_dns = false;
magic_dns = false;
nameservers = [
"1.1.1.1"
];
#domains = [ "kms" "julienmalka.me" "luj" ];
restricted_nameservers = {
"kms" = [ "100.100.45.5" ];
"julienmalka.me" = [ "100.100.45.5" ];
"luj" = [ "100.100.45.5" ];
"saumon" = [ "100.100.45.5" ];
};
};
server_url = "https://vpn.saumon.network";
ip_prefixes = [
"100.100.45.0/24"
"fd7a:115c:a1e0::/48"
];
};
};
services.nginx.virtualHosts = {
"vpn.saumon.network" = {
forceSSL = true;
enableACME = true;
locations = {
"/" = {
proxyPass = "http://localhost:${toString config.services.headscale.port}";
proxyWebsockets = true;
};
};
};
};
services.openssh = {
enable = true;
ports = [ 45 ];