2个版本
0.1.1 | 2020年7月9日 |
---|---|
0.1.0 | 2020年3月11日 |
#185 在 #router
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中运行
注意:它适用于http。对于https,请使用NGINX。有关nginx的步骤,请参阅https-demo。
许可
MIT
依赖项
~11MB
~191K SLoC