mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-22 20:59:32 -08:00
moved nginx to headscale file; added derp autoupdate
This commit is contained in:
parent
41b969d123
commit
ad47d8d2bd
2 changed files with 15 additions and 9 deletions
|
@ -18,7 +18,22 @@ in {
|
|||
base_domain = baseDomain;
|
||||
extra_records = tailscale_dns_entries;
|
||||
};
|
||||
derp = {
|
||||
auto_update_enable = true;
|
||||
update_frequency = "24h";
|
||||
};
|
||||
};
|
||||
};
|
||||
environment.systemPackages = [ config.services.headscale.package ];
|
||||
|
||||
services.nginx.virtualHosts = {
|
||||
"headscale.nickiel.net" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${ toString config.services.headscale.port }";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -50,15 +50,6 @@
|
|||
locations."/".proxyPass = "http://127.0.0.1:3001";
|
||||
};
|
||||
|
||||
"headscale.nickiel.net" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:${ toString config.services.headscale.port }";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue