0.6.4 • Published 9 years ago

proxit v0.6.4

Weekly downloads
11
License
-
Repository
github
Last release
9 years ago

Proxit Build Status

Simple proxy server built on express / connect.

Installation

  1. npm install -g proxit (may need to add "sudo" for Mac / Linux)

Configuration - Stand Alone

  1. 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
  1. Update the configuration file, e.g.:

    {
       	"port": 9000,
       	"verbose": true,
       	"hosts": [{
       	    "hostnames": ["*"],
               "routes": {
                   "/": "http://nodejs.org/"
               }
       	},{
       	    "hostnames": ["local.mycompany.com"],
       	    "routes": {
       	        "/": "/code/local.mycompany.com/"
       	    }
       	}]
    	}
3. Start proxit by running `proxit` on the command line.

## Configuration - Grunt

In your project's `gruntfile.js`, add a section named `proxit`.

```js
grunt.initConfig({
    proxit: {
        dev: {
            options: {
                verbose: true,
                hosts: [{
                    routes: {
                        '/': 'http://nodejs.org/'
                    }
                }]
            }
        }
    }
});

grunt.loadNpmTasks('proxit');

You can now start your dev configuration using grunt proxit:dev.

Configuration - Middleware (Connect / Express)

var proxit = require('proxit');

var config = {
    verbose: true,
    hosts: [{
        routes: {
            '/': 'http://nodejs.org/'
        }
    }]
};

express.use(proxit(config));

Issues / Bugs

https://github.com/cengage/proxit/issues

0.6.4

9 years ago

0.6.0

10 years ago

0.5.12

10 years ago

0.5.10

10 years ago

0.5.8

10 years ago

0.5.4

10 years ago

0.5.2

10 years ago

0.5.0

10 years ago

0.4.36

10 years ago

0.4.34

10 years ago

0.4.32

10 years ago

0.4.28

10 years ago

0.4.26

10 years ago

0.4.24

10 years ago

0.4.22

10 years ago

0.4.20

10 years ago

0.4.12

10 years ago

0.4.10

10 years ago

0.4.8

10 years ago

0.4.6

10 years ago

0.4.3

10 years ago

0.4.0

10 years ago

0.3.6

10 years ago

0.3.5

10 years ago

0.3.4

10 years ago

0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.2.12

10 years ago

0.2.5

10 years ago

0.2.7

10 years ago

0.2.6

10 years ago

0.3.0

10 years ago

0.2.11

10 years ago

0.2.0

10 years ago

0.1.12

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago