对于需要使用Ngrok指定远程端口写法比较麻烦,对格式缩进也比较严格,指定远程端口为remote_port,使用Tunnel方式启动,

以下为格式模板:

 

server_addr: "tunnel.qydev.com:4443"
trust_host_root_certs: false
tunnels:

              web:
                  subdomain: web
                  proto:
                            http: 80
              ssh:
                  remote_port: 6666
                  proto:
                            tcp: 22

需要注意的是,指定端口的前面是有一个空格