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 = {