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