22 lines
473 B
Nix
22 lines
473 B
Nix
{
|
|
enable = true;
|
|
recommendedProxySettings = true;
|
|
virtualHosts = let
|
|
simpleProxy = ip: {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
extraConfig = ''
|
|
proxy_buffering off;
|
|
'';
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:${toString ip}";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
in {
|
|
"home.jhink.org" = simpleProxy 8123;
|
|
"git.jhink.org" = simpleProxy 3000;
|
|
"vault.jhink.org" = simpleProxy 8222;
|
|
};
|
|
}
|