1
0
Fork 0
forked from fi/nix-infra

Work on hydra config, fix tor relay config, prepare web-public-2 host

This commit is contained in:
fi 2023-07-18 17:23:46 +02:00
commit c6f4780ccd
Signed by: fi
SSH key fingerprint: SHA256:d+6fQoDPMbSFK95zRVflRKZLRKF4cPSQb7VIxYkhFsA
15 changed files with 176 additions and 9 deletions

33
hosts/hydra/nginx.nix Normal file
View file

@ -0,0 +1,33 @@
{ ... }:
{
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";
};
};
};
};
}