17 Star 68 Fork 27

yedajiang44 / GatewayBranch

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.MD 1.35 KB
一键复制 编辑 原始数据 按行查看 历史
yedajiang44 提交于 2021-12-25 21:40 . edit readme

GatewayBranch

中文文档

GatewayBranch is a lightweight gateway forwarding tool developed based on DotNet

workflow

How to use

import package

using GatewayBranch.Core;

add service

services.AddGatewayBranch(hostContext.Configuration);

config appsettings.json

  "Gateway": {
    "TcpPort": [2012,2013], // listener ports list
    "BrabchServer": [
      {
        "Ip": "127.0.0.1", // branch server ip or domain
        "Port": 808, // branch server port
        "NeedReply": true // if `true` branch port downstream data,else do nothing
      },
      {
        "Ip": "127.0.0.1",
        "Port": 809,
        "NeedReply": true
      }
    ]
  }

Run in docker

the docker image yedajiang44/gatewaybranch

  • download docker-compose.yml
  • exec docker-compose up -d

note

If you need to map configuration file, you need to create the corresponding file

Roadmap

  • add udp
  • add session mananger webapi
C#
1
https://gitee.com/yedajiang44/GatewayBranch.git
git@gitee.com:yedajiang44/GatewayBranch.git
yedajiang44
GatewayBranch
GatewayBranch
main

搜索帮助