diff --git a/hosts/hosting-01/default.nix b/hosts/hosting-01/default.nix index e239efb..7674dc2 100644 --- a/hosts/hosting-01/default.nix +++ b/hosts/hosting-01/default.nix @@ -62,15 +62,6 @@ in }; }; - services.nginx.virtualHosts."headscale.escapeangle.com" = { - forceSSL = true; - enableACME = true; - locations."/" = { - proxyPass = "http://localhost:${toString config.services.headscale.port}"; - proxyWebsockets = true; - }; - }; - services.headplane = { enable = true; agent.enable = false; @@ -93,10 +84,14 @@ in }; }; - services.nginx.virtualHosts."headplane.escapeangle.com" = { + services.nginx.virtualHosts."headscale.escapeangle.com" = { forceSSL = true; enableACME = true; locations."/" = { + proxyPass = "http://localhost:${toString config.services.headscale.port}"; + proxyWebsockets = true; + }; + locations."/admin" = { proxyPass = "http://127.0.0.1:${toString config.services.headplane.settings.server.port}"; proxyWebsockets = true; };