nix-infra/hosts/hydra/nginx.nix

34 lines
607 B
Nix
Raw Normal View History

{ ... }:
{
services.nginx = {
enable = true;
virtualHosts = {
"hydra.nekover.se" = {
enableACME = true;
listen = [{
addr = "0.0.0.0";
port = 8443;
ssl = true;
}];
locations."/" = {
proxyPass = "http://localhost:3001";
};
};
"nix-cache.nekover.se" = {
enableACME = true;
listen = [{
addr = "0.0.0.0";
port = 8443;
ssl = true;
}];
locations."/" = {
proxyPass = "http://localhost:5005";
};
};
};
};
}