Enable hydra

This commit is contained in:
Aleix Boné 2025-02-27 15:27:51 +01:00 committed by Aleix Boné
parent d948f8b752
commit aca47f21ac
3 changed files with 25 additions and 0 deletions

View File

@ -19,6 +19,7 @@
./postgresql.nix
./nginx.nix
./p.nix
./hydra.nix
#./pxe.nix
];

13
m/hut/hydra.nix Normal file
View File

@ -0,0 +1,13 @@
{ config, lib, ... }:
{
services.hydra = {
enable = true;
hydraURL = "http://jungle.bsc.es/hydra"; # externally visible URL
notificationSender = "hydra@jungle.bsc.es"; # e-mail of Hydra service
port = 3001;
# a standalone Hydra will require you to unset the buildMachinesFiles list to avoid using a nonexistant /etc/nix/machines
buildMachinesFiles = [];
# you will probably also want, otherwise *everything* will be built from scratch
useSubstitutes = true;
};
}

View File

@ -45,6 +45,17 @@ in
proxy_pass http://127.0.0.1:5000;
proxy_redirect http:// $scheme://;
}
location /hydra {
rewrite ^/hydra/(.*) /$1 break;
proxy_pass http://127.0.0.1:3001;
proxy_redirect http:// $scheme://;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Request-Base /hydra;
}
location /lists {
proxy_pass http://127.0.0.1:8081;
proxy_redirect http:// $scheme://;