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;