Privilege drop support for bin/node-http-proxy via --user <username> parameter #203

wants to merge 6 commits into


None yet

4 participants


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


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.

nodejitsu member

lgtm. I'll look into merging this soon.


@indexzero thanks, that would be great.



nodejitsu member

Cherry-picked. Thanks!

@indexzero indexzero closed this Mar 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment