Skip to content

nodejs http/s proxy... like nginx or apache

License

Notifications You must be signed in to change notification settings

mike-seagull/http-prauksy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

http-prauksy

http/s proxy similar to apache or nginx


Build Status
alt text

The http server runs on 3080 and the https server runs on 3443 so that the app doesnt need to run as root

The server routes traffic from port 80 and 443 to this app using iptables

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3080

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 3443

To bundle into a binary

npm run bundle

To run

node server.js

About

nodejs http/s proxy... like nginx or apache

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published