34 lines
607 B
Nix
34 lines
607 B
Nix
|
{ ... }:
|
||
|
{
|
||
|
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";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
};
|
||
|
};
|
||
|
}
|