Skip to content

myTerminal/quick-bounce

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published