From f67a810a2b7ae4619cbc01cba13eaa91cf99a07b Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 2 Oct 2022 17:46:30 +0200 Subject: [PATCH] hosts/hydra-1: add hydra service --- hosts/hydra-1/configuration.nix | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/hosts/hydra-1/configuration.nix b/hosts/hydra-1/configuration.nix index 3482633..efb504b 100644 --- a/hosts/hydra-1/configuration.nix +++ b/hosts/hydra-1/configuration.nix @@ -21,5 +21,28 @@ networking.defaultGateway = { address = "192.168.10.1"; interface = "ens19"; }; networking.nameservers = [ "2001:638:904:ffcc::3" "2001:638:904:ffcc::4" "141.24.40.3" "141.24.40.4" ]; + services.hydra = { + enable = true; + port = 3001; + hydraURL = "https://hydra.clerie.de"; + listenHost = "localhost"; + notificationSender = "noreply@hydra.clerie.de"; + }; + + services.nginx.enable = true; + services.nginx.virtualHosts = { + "hydra.clerie.de" = { + enableACME = true; + forceSSL = true; + locations = { + "/" = { + proxyPass = "http://localhost:3001"; + }; + }; + }; + }; + + networking.firewall.allowedTCPPorts = [ 80 443 ]; + system.stateVersion = "22.11"; }