From 040a9e7a6e3b47ad1a7d5cbd2e8c238cec1ed8f5 Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Sun, 14 May 2023 13:53:34 +0200 Subject: [PATCH] Deploy bin-cache --- flake.nix | 10 ++++++++++ machines/bin-cache/default.nix | 13 +------------ 2 files changed, 11 insertions(+), 12 deletions(-) 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; }; };