https://github.com/myterminal/quick-bounce
A reverse-proxy implementation using bouncy to host sub-domains on the same machine on different ports
https://github.com/myterminal/quick-bounce
reverse-proxy
Last synced: 2 months ago
JSON representation
A reverse-proxy implementation using bouncy to host sub-domains on the same machine on different ports
- Host: GitHub
- URL: https://github.com/myterminal/quick-bounce
- Owner: myTerminal
- License: mit
- Created: 2017-02-14T17:19:26.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-08-19T05:27:40.000Z (almost 4 years ago)
- Last Synced: 2025-02-18T06:50:22.604Z (over 1 year ago)
- Topics: reverse-proxy
- Language: JavaScript
- Size: 98.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# quick-bounce
[](https://badge.fury.io/js/quick-bounce)
[](https://www.npmjs.com/package/quick-bounce)
[](https://opensource.org/licenses/MIT)
[](https://travis-ci.org/myTerminal/quick-bounce)
[](https://codeclimate.com/github/myTerminal/quick-bounce)
[](https://www.npmjs.com/package/eslint-config/myterminal)
[](https://coveralls.io/r/myTerminal/quick-bounce?branch=master)
[](https://nodei.co/npm/quick-bounce/)
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](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