Problem: Don't want to run my standalone proxy server as root to bind to privileged ports (e.g. 80, 443).
Solution: support privilege drop after socket bind via new --user parameter.
sudo node-http-proxy --user nobody --port 80 --target localhost:3000
problem: don't want to run my server as root to bind to privileged po…
…rts (e.g. 80, 443).
solution: support privilege drop after socket bind via new --user <username> parameter.
add support for loading CA bundles
another typo *sigh*
this wasn't doing what I thought it was doing.
Also added support for setting the "ca" option to createServer() via config.json. This is necessary if you have an SSL cert which requires additional CA certs (like many cheap SSL certs do these days).
Would that affect GH-193?
No, but making requestCert settable via the config file as I did with ca in this diff should also solve it.
lgtm. I'll look into merging this soon.
@indexzero thanks, that would be great.