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

app traffic_router

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

6 个版本

0.1.6 2020 年 7 月 9 日
0.1.5 2020 年 3 月 12 日
0.1.2 2019 年 9 月 21 日

#164 in #router

每月 21 次下载

MIT 许可证

11KB
61

traffic_router

将请求路由到多个 Web 应用程序。

此外,还提供了 Async 版本,请访问 此处

目标

旨在避免为此类路由使用 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.service - To run this router as a service

示例

此流量路由器用于路由以下两个 Web 应用程序;用 Rust/hyper 编写;在数字海洋的 droplet 中运行

  1. 查找最新的 NAV 网站
  2. 登录应用

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

许可证

MIT

依赖项

~7.5MB
~144K SLoC