代码拉取完成,页面将自动刷新
GatewayBranch 是一个基于 DotNetty 的轻量级网关转发工具
导入命名空间
using GatewayBranch.Core;
添加中间件
services.AddGatewayBranch(hostContext.Configuration);
配置 appsettings.json
"Gateway": {
"TcpPort": [2012,2013], // 监听端口集合
"BrabchServer": [
{
"Ip": "127.0.0.1", // 分支服务器Ip或域名
"Port": 808, // 分支服务器 port
"NeedReply": true // 如果为 `true` 该分支的下行数据将通过 `TcpPort` 下发至终端,否则将过滤掉
},
{
"Ip": "127.0.0.1",
"Port": 809,
"NeedReply": true
}
]
}
为方便使用,已创建 docker 镜像 yedajiang44/gatewaybranch
docker-compose.yml
文件docker-compose up -d
如果要映射配置文件,则需要创建相应的文件
appsettings.json
content see appsettings.json,具体配置项请参见GatewayConfiguration
nlog.config
content see nlog.config此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型