From 103c7730beb85da278cf086284cd807f77c5bb76 Mon Sep 17 00:00:00 2001 From: ahtlon Date: Sat, 29 Aug 2026 21:13:33 +0200 Subject: [PATCH] [albert] move proxy to fanny also add the cache location --- machines/albert/configuration.nix | 2 +- machines/albert/hydra.nix | 6 ------ machines/fanny/configuration.nix | 11 +++++++++++ 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/machines/albert/configuration.nix b/machines/albert/configuration.nix index 3804d17..d3c4133 100644 --- a/machines/albert/configuration.nix +++ b/machines/albert/configuration.nix @@ -77,7 +77,7 @@ in networking = { firewall = { - allowedTCPPorts = [ 80 443 3000 ]; + allowedTCPPorts = [ 80 443 3000 5000]; }; }; diff --git a/machines/albert/hydra.nix b/machines/albert/hydra.nix index d36fea5..e8c9472 100644 --- a/machines/albert/hydra.nix +++ b/machines/albert/hydra.nix @@ -95,11 +95,5 @@ "git+ssh://git.dynamicdiscord.de/" "https://git.dynamicdiscord.de" ]; - - services.nginx.virtualHosts."hydra.malobeo.org" = { - forceSSL = true; - enableACME = true; - locations."/".proxyPass = "http://localhost:3000"; - }; } diff --git a/machines/fanny/configuration.nix b/machines/fanny/configuration.nix index 787ccca..defb3f4 100644 --- a/machines/fanny/configuration.nix +++ b/machines/fanny/configuration.nix @@ -298,6 +298,17 @@ in ''; }; }; + + virtualHosts."hydra.malobeo.org" = { + forceSSL = true; + enableACME = true; + locations."/".proxyPass = "http://${hosts.malobeo.hosts.albert.network.address}:3000"; + }; + virtualHosts."cache.malobeo.org" = { + forceSSL = true; + enableACME = true; + locations."/".proxyPass = "http://${hosts.malobeo.hosts.albert.network.address}:5000"; + }; }; services.tor = {