gun:在CloudFlare上的玩具gRPC隧道(概念证明)

时间:2021-05-05 18:02:35
【文件属性】:
文件名称:gun:在CloudFlare上的玩具gRPC隧道(概念证明)
文件大小:27KB
文件格式:ZIP
更新时间:2021-05-05 18:02:35
tunnel grpc cloudflare grpc-go sip003 枪 你知道那是什么意思。 指导 服务器 转到您在CloudFlare中的域。 在“网络”标签中,打开gRPC。 在“ SSL / TLS”选项卡中,选择“源服务器”子选项卡。 创建一个新证书,并另存为cert.pem和cert.key 。 在“ DNS”选项卡中,添加指向您自己的服务器的记录。 确保代理状态为“已代理”。 在您的服务器上运行并将其持久化。 本示例将入站流量转发到127.0.0.1:8899 。 gun -mode server -local :443 -remote 127.0.0.1:8899 -cert cert.pem -key cert.key 如果使用的是TLS终止代理,则可以将-cleartext参数设置为使用HTTP / 2 Cleartext传输协议。 客户 假设服务器的域是grpc.example.com 。 在本地运行并持续。 这会将从127
【文件预览】:
gun-main
----.gitignore(312B)
----go.mod(118B)
----pkg()
--------proto()
--------docs.go(12B)
--------impl()
--------cert()
----LICENSE(1KB)
----go.sum(8KB)
----.github()
--------workflows()
----branding.png(11KB)
----README.md(1KB)
----cmd()
--------main.go(1KB)
--------sip003()

网友评论