diff --git a/flake.nix b/flake.nix index e36410c..fa138bf 100644 --- a/flake.nix +++ b/flake.nix @@ -123,6 +123,16 @@ }; }; + deploy.nodes.bin-cache = { + hostname = "bin-cache.julienmalka.me"; + profiles.system = { + sshUser = "root"; + sshOpts = [ "-p" "45" ]; + fastConnection = true; + path = deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.lisa; + }; + }; + deploy.nodes.tower = { hostname = "tower.julienmalka.me"; diff --git a/machines/bin-cache/default.nix b/machines/bin-cache/default.nix index 734a53f..db57b97 100644 --- a/machines/bin-cache/default.nix +++ b/machines/bin-cache/default.nix @@ -32,18 +32,7 @@ forceSSL = true; enableACME = true; locations."/" = { - proxyPass = "http://localhost:3001"; - proxyWebsockets = true; - }; - }; - - security.acme.certs."uptime.luj".server = "https://ca.luj:8444/acme/acme/directory"; - - services.nginx.virtualHosts."uptime.luj" = { - forceSSL = true; - enableACME = true; - locations."/" = { - proxyPass = "http://localhost:3001"; + proxyPass = "http://localhost:8080"; proxyWebsockets = true; }; };