主要是记录下方便以后查找
钉钉内网穿透工具配置,方便移动端调试,不要配置代理
第一步 clone git仓库
git clone https://github.com/open-dingtalk/pierced.git
第二步
mac
cd mac_64
./ding -config=./ding.cfg -subdomain=abcde 8080
// 配置-subdomain=(域名) 端口
windows
// 1.
cd cd windows_64
// 2.
ding -config=ding.cfg -subdomain=abcde 8080
// 配置-subdomain=(域名) 端口
第三步启动http服务,用nginx做转发
nginx 配置
server {
listen 8888;
server_name dajun.vaiwan.com;
charset utf-8;
#access_log logs/host.access.log main;
location / {
gzip on;
gzip_types text/plain application/javascript text/css;
root E:/project/draw-course-admin-view/dist;
index index.html index.htm;
// 配置本地的静态资源路径
}
}