hydra: update Hydra configs
This commit is contained in:
parent
d669a91593
commit
7df174e45c
|
@ -5,6 +5,8 @@ let
|
|||
owner = "nixos";
|
||||
repo = "hydra";
|
||||
rev = "906d2493c5c74673ba317d0b5ce7d97b062bd39b";
|
||||
#rev = "87837f1d82904bf48e11b5641258b6be2f663c3b";
|
||||
#sha256 = "1vs3lyfyafsl7wbpmycv7c3n9n2rkrswp65msb6q1iskgpvr96d5";
|
||||
sha256 = "0i7szp04c873gfmj1h0dcl5rsbzzldc160pcls8z9v6iphils34i";
|
||||
};
|
||||
in
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
let
|
||||
hydraRelease = (import (src + "/release.nix") {
|
||||
#hydraRelease = (import src {
|
||||
nixpkgs = nixpkgsPath;
|
||||
hydraSrc = {
|
||||
outPath = src;
|
||||
|
|
|
@ -31,19 +31,19 @@
|
|||
name = "hydra"; # Ensure the database user persists
|
||||
ensurePermissions = { # Ensure the database permissions persist
|
||||
"DATABASE hydra" = "ALL PRIVILEGES";
|
||||
"ALL TABLES IN SCHEMA public" = "ALL PRIVILEGES";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
#networking.firewall.allowedTCPPorts = [ config.services.hydra-dev.port ];
|
||||
networking.firewall.allowedTCPPorts = [ config.services.hydra.port ];
|
||||
|
||||
#services.hydra-dev = {
|
||||
services.hydra = {
|
||||
enable = true;
|
||||
#package = pkgs.callPackage ./hydra-dev.nix {}; # Remove to use stable Hydra
|
||||
package = pkgs.hydra-unstable;
|
||||
#package = pkgs.hydra-unstable;
|
||||
port = 3003;
|
||||
useSubstitutes = true;
|
||||
hydraURL = "https://hydra.mcwhirter.io";
|
||||
notificationSender = "hydra.mcwhirter.io";
|
||||
|
@ -58,7 +58,7 @@
|
|||
virtualHosts."hydra.mcwhirter.io" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/".proxyPass = "http://127.0.0.1:3000";
|
||||
locations."/".proxyPass = "http://127.0.0.1:3003";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue