2024-01-14 01:00:17 -05:00
|
|
|
let
|
|
|
|
baseUrl = "hydra.fancyTypist.com";
|
|
|
|
HOST = "localhost";
|
|
|
|
PORT = 8246;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
services.hydra = {
|
2024-01-14 18:26:38 -05:00
|
|
|
enable = false;
|
2024-01-14 01:00:17 -05:00
|
|
|
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}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|