From ba41e6bfb3e7ae5fddbb38ef4115c75d07b288b4 Mon Sep 17 00:00:00 2001 From: Lander Van den Bulcke Date: Wed, 2 Jul 2025 22:03:23 +0200 Subject: [PATCH] refactor: put headplane under same subdomain Signed-off-by: Lander Van den Bulcke --- hosts/hosting-01/default.nix | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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; };