Neat Paraskavedekatriaphobia's Meaning

    proxy-server

    1.2.0 • Public • Published

    proxy-server

    Simple http/https server that runs a simple http-proxy based on create-servers and node-http-proxy.

    Install

    Use as CLI

    $ npm install -g proxy-server

    Use as module

    $ npm install proxy-server

    Usage

    var Server = require('proxy-server');
     
    var server = new Server({
      // create-servers options
      http: 80,
      https: {
        port: 443,
        root: '/path/to/cert/files',
        key: 'key.pem',
        cert: 'cert.pem',
        ca: 'ca.pem' //can be array
      },
      target: 'https://localhost:5984'
    });
     
    // Startup errors from `create-servers`
    server.on('error', function (err) {
      console.error(err);
    });
     
    server.on('listening', function (servers) {
      console.log('listening!');
    });

    Install

    npm i proxy-server

    DownloadsWeekly Downloads

    6

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • jcrugzz