Add hydra server
This commit is contained in:
26
nixos-apps/hydra.fancyTypist.com.nix
Normal file
26
nixos-apps/hydra.fancyTypist.com.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
let
|
||||
baseUrl = "hydra.fancyTypist.com";
|
||||
HOST = "localhost";
|
||||
PORT = 8246;
|
||||
in
|
||||
{
|
||||
services.hydra = {
|
||||
enable = true;
|
||||
port = PORT;
|
||||
hydraURL = "https://${HOST}:${toString PORT}";
|
||||
notificationSender = "hydra@fancyTypist.com";
|
||||
buildMachinesFiles = [ ];
|
||||
useSubstitutes = true;
|
||||
};
|
||||
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
virtualHosts = {
|
||||
"${baseUrl}" = {
|
||||
extraConfig = ''
|
||||
reverse_proxy ${HOST}:${toString PORT}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user