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

app traffic_router_async

将http请求反向代理/网关到多个Web应用程序

2个版本

0.1.1 2020年7月9日
0.1.0 2020年3月11日

#185#router

MIT许可

11KB
70

traffic_router_async

将请求路由到多个Web应用程序。 注意: 此代码基于Hyper的示例:网关

目标

旨在避免使用Apache Web服务器进行此类路由。

设置

以下三个文件需要配置和运行此路由器

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

示例

此异步流量路由器用于路由以下Web应用程序,在Rust/hyper中运行,在DigitalOcean的droplet中运行

  1. eastgate
  2. 查找最新的NAV站点
  3. 登录应用程序

注意:它适用于http。对于https,请使用NGINX。有关nginx的步骤,请参阅https-demo

许可

MIT

依赖项

~11MB
~191K SLoC