Simple proxy server built on express / connect.
Installation
- npm install -g proxit (may need to add "sudo" for Mac / Linux)
Configuration - Stand Alone
- Create a configuration file in one of the following locations:
- a local
.proxitrc
or the first found looking in./ ../ ../../ ../../../
etc. $HOME/.proxitrc
$HOME/.proxit/config
$HOME/.config/proxit
$HOME/.config/proxit/config
/etc/proxitrc
/etc/proxit/config
- Update the configuration file, e.g.:
- Start proxit by running
proxit
on the command line.
Configuration - Grunt
In your project's gruntfile.js
, add a section named proxit
.
grunt; grunt;
You can now start your dev configuration using grunt proxit:dev
.
Configuration - Middleware (Connect / Express)
var proxit = ; var config = verbose: true hosts: routes: '/': 'http://nodejs.org/' ; express;