New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

proxit

Package Overview
Dependencies
Maintainers
2
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxit

Simple proxy server built on express / connect.

  • 0.6.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
33
decreased by-34%
Maintainers
2
Weekly downloads
 
Created
Source

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/"
   	    }
   	}]
   }
  1. Start proxit by running proxit on the command line.

Configuration - Grunt

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

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

Keywords

FAQs

Package last updated on 18 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc