hydra: wip init
Some checks are pending
/ test (push) Waiting to run

This commit is contained in:
Christoph Hollizeck 2024-12-28 11:26:20 +01:00
parent 7ca6dd60b0
commit d02e25eb96
Signed by: Daholli
GPG key ID: 249300664F2AF2C7

View file

@ -11,6 +11,7 @@ let
domainName = "christophhollizeck.dev"; domainName = "christophhollizeck.dev";
forgejoPort = 3000; forgejoPort = 3000;
hydraPort = 2000;
cfg.enableAcme = true; 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}" = { "${domainName}" = {
forceSSL = cfg.enableAcme; forceSSL = cfg.enableAcme;
useACMEHost = mkIf cfg.enableAcme domainName; useACMEHost = mkIf cfg.enableAcme domainName;
@ -123,7 +133,8 @@ in
services.hydra = { services.hydra = {
enable = true; enable = true;
hydraURL = "http://hydra.${domainName}:2000"; hydraURL = "http://localhost:2000";
port = 2000;
notificationSender = "hydra@localhost"; notificationSender = "hydra@localhost";
buildMachinesFiles = [ ]; buildMachinesFiles = [ ];
useSubstitutes = true; useSubstitutes = true;