Add Hydra Nginx integration
This commit is contained in:
parent
7d369dc60f
commit
481271af9c
|
@ -29,6 +29,8 @@
|
||||||
|
|
||||||
server.networking.enableSSH = true;
|
server.networking.enableSSH = true;
|
||||||
|
|
||||||
|
services.nginx.enable = true;
|
||||||
|
|
||||||
server.builder.enableHydra = true;
|
server.builder.enableHydra = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
|
@ -15,5 +15,12 @@ with lib;
|
||||||
buildMachinesFiles = [ ];
|
buildMachinesFiles = [ ];
|
||||||
useSubstitutes = true;
|
useSubstitutes = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts.localhost = mkIf config.services.nginx.enable {
|
||||||
|
locations."/" = {
|
||||||
|
recommendedProxySettings = true;
|
||||||
|
proxyPass = config.services.hydra.hydraURL;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue