also start hydra instance on build03
This commit is contained in:
parent
ef5ff01549
commit
5e2ce2f8fd
4 changed files with 30 additions and 7 deletions
build01
build03
services/hydra
terraform
|
@ -40,6 +40,14 @@
|
||||||
|
|
||||||
networking.nix-community.ipv6.address = "2a01:4f8:13b:2ceb::1";
|
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 = {
|
systemd.services.healthcheck-ping = {
|
||||||
startAt = "*:0/5"; # every 5 minutes
|
startAt = "*:0/5"; # every 5 minutes
|
||||||
serviceConfig.ExecStart = "${pkgs.curl}/bin/curl -X POST -sfL https://hc-ping.com/fcf6c029-5b57-44aa-b392-923f3d894dd9";
|
serviceConfig.ExecStart = "${pkgs.curl}/bin/curl -X POST -sfL https://hc-ping.com/fcf6c029-5b57-44aa-b392-923f3d894dd9";
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
../roles/nix-community-cache.nix
|
../roles/nix-community-cache.nix
|
||||||
|
|
||||||
../services/hound
|
../services/hound
|
||||||
|
../services/hydra
|
||||||
../services/matterbridge.nix
|
../services/matterbridge.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -31,6 +32,13 @@
|
||||||
insmod mdraid1x
|
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.nix-community.ipv6.address = "2a01:4f9:3a:3b16::1";
|
||||||
|
|
||||||
networking.hostName = "nix-community-build03";
|
networking.hostName = "nix-community-build03";
|
||||||
|
|
|
@ -89,13 +89,13 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts = {
|
#services.nginx.virtualHosts = {
|
||||||
"hydra.nix-community.org" = {
|
# "hydra.nix-community.org" = {
|
||||||
forceSSL = true;
|
# forceSSL = true;
|
||||||
enableACME = true;
|
# enableACME = true;
|
||||||
locations."/".proxyPass = "http://localhost:${toString (hydraPort)}";
|
# locations."/".proxyPass = "http://localhost:${toString (hydraPort)}";
|
||||||
};
|
# };
|
||||||
};
|
#};
|
||||||
|
|
||||||
services.hydra = {
|
services.hydra = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
@ -59,6 +59,13 @@ resource "cloudflare_record" "nix-community-org-hydra-CNAME" {
|
||||||
type = "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" {
|
resource "cloudflare_record" "nix-community-org-search-CNAME" {
|
||||||
zone_id = local.nix_community_org_zone_id
|
zone_id = local.nix_community_org_zone_id
|
||||||
name = "search"
|
name = "search"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue