From d02e25eb965cbb9f941b73b317290b29b420feee Mon Sep 17 00:00:00 2001 From: Christoph Hollizeck Date: Sat, 28 Dec 2024 11:26:20 +0100 Subject: [PATCH] hydra: wip init --- systems/x86_64-linux/loptland/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/systems/x86_64-linux/loptland/default.nix b/systems/x86_64-linux/loptland/default.nix index 0fce233..7ca031b 100644 --- a/systems/x86_64-linux/loptland/default.nix +++ b/systems/x86_64-linux/loptland/default.nix @@ -11,6 +11,7 @@ let domainName = "christophhollizeck.dev"; forgejoPort = 3000; + hydraPort = 2000; cfg.enableAcme = true; @@ -64,6 +65,15 @@ in }; }; + "hydra.${domainName}" = { + forceSSL = cfg.enableAcme; + useACMEHost = mkIf cfg.enableAcme domainName; + + locations."/" = { + proxyPass = "http://localhost:${toString hydraPort}/"; + }; + }; + "${domainName}" = { forceSSL = cfg.enableAcme; useACMEHost = mkIf cfg.enableAcme domainName; @@ -123,7 +133,8 @@ in services.hydra = { enable = true; - hydraURL = "http://hydra.${domainName}:2000"; + hydraURL = "http://localhost:2000"; + port = 2000; notificationSender = "hydra@localhost"; buildMachinesFiles = [ ]; useSubstitutes = true;