Skip to content

pudongping/tunnel-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tunnel-proxy

轻量化的隧道代理,使用 OpenResty 做请求转发

启动 OpenResty

docker-compose up

启动成功之后,可以通过访问 http://localhost:8080 来测试,应该会有类似以下输出内容

Hello, World from OpenResty + Docker Compose!

隧道代理

配置文件详见 conf/runnel_proxy_redis.conf,可以根据实际需要进行修改。 需要修改其中的 redis 配置。

其中 redis zset 数据示例类似

zadd tunnel_proxy_pool 0 127.0.0.1:9001 0 4127.0.0.1:9002 0 127.0.0.1:9003

隧道代理示例请求

go run main.go

About

轻量化的自定义隧道代理,使用 OpenResty 做请求转发

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages