代理——將本地服務暴露公網
- 2019 年 11 月 4 日
- 筆記
有時候我們需要將本地或者公司內部服務暴露出公網入口,一種是申請域名。還有一種方法是通過代理生成公網入口,比如:ngrok,釘釘。
釘釘代理:
git clone https://github.com/open-dingtalk/pierced.git
cd pierced/linux
chmod 777 ./ding
nohup ./ding -log=stdout -config=./ding.cfg -subdomain=wyh.daliy 7001 &
其中 wyh.daliy 7001 是你暴露出的地址和埠,這樣你的服務就會暴露在公網上了。