2024-03-28 13:14:58 -04:00

22 lines
476 B
Nix

{
enable = false;
recommendedProxySettings = true;
virtualHosts = let
simpleProxy = ip: {
forceSSL = false;
enableACME = false;
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;
};
}