#web-apps #utility #tool #applications #request #http-request #router

app traffic_router_async

Reverse Proxy / Gateway for http request into several web applications

2 releases

0.1.1 Jul 9, 2020
0.1.0 Mar 11, 2020

#185 in #router

MIT license

11KB
70 lines

traffic_router_async

Routes request into several web applications. Note: This is written based on Hyper's example: gateways

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_async.service - To run this router as a service

Example

This traffic router async is used in routing following web applications, in Rust/hyper; running in a digital ocean's droplet:

  1. eastgate
  2. find latest NAV site
  3. login app

Note: It works for http. For https, use NGINX. Refer https-demo for steps to be followed for nginx.

License

MIT

Dependencies

~11MB
~191K SLoC