使用IT TUNNGrok服务器搭建

使用IT TUN NGrok服务器搭建

 

 

1. http://www.ittun.com/ 下载相应的客户端文件

2. 修改config.yml文件

修改为:

server_addr: "ittun.com:36415" #修改端口号 36415 http代理端口 
trust_host_root_certs: false
tunnels:
   springboot:  # 设置proname startup.bat 会引用这个
     subdomain: "gsy" # 设置二级域名
     proto:
       http: 8080 # 代理的端口号

3. 修改startup.bat启动文件

修改为:

@echo on
cd %cd%
#ngrok -proto=tcp 22
#ngrok start web
#ngrok -subdomain test1 7001
#ngrok 80
ngrok -config config.yml start springboot #springboot 是的config.yml配置的proname

4.双击startup.bat


版权声明:本文为qq_30166123原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。