0.9.8 • Published 3 years ago

quick-bounce v0.9.8

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

quick-bounce

npm version npm downloads License
Build Status Code Climate js-myterminal-style Coverage Status
NPM

A reverse-proxy implementation using bouncy to host sub-domains on the same machine on different ports

Features

  • Easy to configure sub-domains with minimal detail specified as a JSON file
  • Map your websites with just one line!

How to Use

Require quick-bounce and invoke bounce with the path of a configuration file and a port number.

var quickBounce = require('quick-bounce');
quickBounce.bounce('./configs.json', 80);

The above two lines are enough to host all the websites mentioned in the configuration file on port 80.

A configuration file can look like

{
    "websites": [
        {
            "app-name": "root",
            "host": "www.example.com",
            "port": "8080"
        },
        {
            "app-name": "one",
            "host": "one.example.com",
            "port": "8081"
        },
        {
            "app-name": "two",
            "host": "two.example.com",
            "port": "8082"
        }
    ]
}

You can also refer to the example, which has basically the same code as shown above as that is all there is you need to do.

To-do

  • Multiple domain names to one website
0.9.8

3 years ago

0.9.7

6 years ago

0.9.6

6 years ago

0.9.5

6 years ago

0.9.4

6 years ago

0.9.3

8 years ago

0.9.2

8 years ago

0.9.1

8 years ago

0.9.0

8 years ago