also start hydra instance on build03

This commit is contained in:
Jörg Thalheim 2021-04-20 21:51:03 +02:00
parent ef5ff01549
commit 5e2ce2f8fd
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4
4 changed files with 30 additions and 7 deletions

View file

@ -40,6 +40,14 @@
networking.nix-community.ipv6.address = "2a01:4f8:13b:2ceb::1";
services.nginx.virtualHosts = {
"hydra.nix-community.org" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://localhost:${toString (config.services.hydra.port)}";
};
};
systemd.services.healthcheck-ping = {
startAt = "*:0/5"; # every 5 minutes
serviceConfig.ExecStart = "${pkgs.curl}/bin/curl -X POST -sfL https://hc-ping.com/fcf6c029-5b57-44aa-b392-923f3d894dd9";

View file

@ -19,6 +19,7 @@
../roles/nix-community-cache.nix
../services/hound
../services/hydra
../services/matterbridge.nix
];
@ -31,6 +32,13 @@
insmod mdraid1x
'';
services.nginx.virtualHosts = {
"hydra2.nix-community.org" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://localhost:${toString (config.services.hydra.port)}";
};
};
networking.nix-community.ipv6.address = "2a01:4f9:3a:3b16::1";
networking.hostName = "nix-community-build03";

View file

@ -89,13 +89,13 @@ in
];
};
services.nginx.virtualHosts = {
"hydra.nix-community.org" = {
forceSSL = true;
enableACME = true;
locations."/".proxyPass = "http://localhost:${toString (hydraPort)}";
};
};
#services.nginx.virtualHosts = {
# "hydra.nix-community.org" = {
# forceSSL = true;
# enableACME = true;
# locations."/".proxyPass = "http://localhost:${toString (hydraPort)}";
# };
#};
services.hydra = {
enable = true;

View file

@ -59,6 +59,13 @@ resource "cloudflare_record" "nix-community-org-hydra-CNAME" {
type = "CNAME"
}
resource "cloudflare_record" "nix-community-org-hydra2-CNAME" {
zone_id = local.nix_community_org_zone_id
name = "hydra2"
value = "build03.nix-community.org"
type = "CNAME"
}
resource "cloudflare_record" "nix-community-org-search-CNAME" {
zone_id = local.nix_community_org_zone_id
name = "search"