官方網站:https://ding-doc.dingtalk.com/doc#/kn6zg7/hb7000
內網穿透工具可以實現將一個公網域名映射到本地的localhost域名。
下載工具:
git clone https://github.com/open-dingtalk/pierced.git
mac:
cd mac_64 chmod 777 ./ding ./ding -config=./ding.cfg -subdomain=abcde 8080
Windows:
cd windows_64 ding -config=./ding.cfg -subdomain=abcde 8080
啟動完客戶端后,你訪問http://abcde.vaiwan.com/xxxxx都會映射到 http://127.0.0.1:8080/xxxxx
修改abcde 為你自己想要的域名,8080為你自己的端口
注:
1.你需要訪問的域名是http://abcde.vaiwan.com/xxxxx 而不是http://abcde.vaiwan.com:8080/xxxxx
2.你啟動命令的subdomain參數有可能被別人占用,盡量不要用常用字符,可以用自己公司名的拼音,例如:alibaba、dingding等。
3.可以在本地起個http-server服務,放置一個index.html文件,然后訪問http://abcde.vaiwan.com/index.html測試一下。