26 lines
458 B
Nix
26 lines
458 B
Nix
let
|
|
baseUrl = "hydra.fancyTypist.com";
|
|
HOST = "localhost";
|
|
PORT = "8246";
|
|
in
|
|
{
|
|
services.hydra = {
|
|
enable = true;
|
|
hydraURL = "https://${HOST}:${PORT}";
|
|
notificationSender = "hydra@localhost";
|
|
buildMachinesFiles = [ ];
|
|
useSubstitutes = true;
|
|
};
|
|
|
|
services.caddy = {
|
|
enable = true;
|
|
virtualHosts = {
|
|
"${baseUrl}" = {
|
|
extraConfig = ''
|
|
reverse_proxy ${HOST}:${PORT}
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|