6 releases
0.1.6 | Jul 9, 2020 |
---|---|
0.1.5 | Mar 12, 2020 |
0.1.2 | Sep 21, 2019 |
#164 in #router
21 downloads per month
11KB
61 lines
traffic_router
Routes request into several web applications.
Also, an Async version is available here.
Goal
Intended to avoid Apache web server for such routing.
Setup
Following three files are needed to configure and run this router:
1. Sites.json - To update web application URLs, PORTs
2. Port-Forwarding.txt - To enable and complete port forwarding processes described in it
3. traffic_router.service - To run this router as a service
Example
This traffic router is used in routing following two web applications; written in Rust/hyper; running in a digital ocean's droplet:
Note: It works for http. For https, use NGINX. Refer https-demo for steps to be followed for nginx.
License
MIT
Dependencies
~7.5MB
~144K SLoC