Add Hydra Nginx integration

This commit is contained in:
Victor Mignot 2023-11-14 22:08:37 +01:00
parent 7d369dc60f
commit 481271af9c
Signed by: dala
GPG key ID: 5E7F2CE1BEAFED3D
2 changed files with 9 additions and 0 deletions

View file

@ -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; [

View file

@ -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;
};
};
}; };
} }