added a basic hydra

This commit is contained in:
Rouven Seifert 2023-05-01 21:05:49 +02:00
parent b7ecc2984d
commit d41c30a414
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
4 changed files with 28 additions and 3 deletions

View file

@ -0,0 +1,19 @@
{ config, ... }:
let
domain = "hydra.rfive.de";
in
{
services.hydra = {
enable = true;
port = 4000;
hydraURL = domain;
notificationSender = "hydra@localhost";
};
services.nginx.virtualHosts."${domain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.hydra.port}";
};
};
}