自建 ngrok 服务器的问题,

2016-10-17 12:43:16 +08:00
 liiihhhh
我添加两条 A 记录: ngrok.xxx.com 和*.ngrok.xxx.com.
但是现在 xxx.com 所指向的 ip 80 端口已经有了博客, 能让 ngrok 制定端口吗
2170 次点击
所在节点    问与答
4 条回复
letitbesqzr
2016-10-17 13:07:01 +08:00
可以指定 -httpAddr=":8081" -httpsAddr=":8082"

不建议用 ngrok , github 上 :

DO NOT RUN THIS VERSION OF NGROK (1.X) IN PRODUCTION. Both the client and server are known to have serious reliability issues including memory and file descriptor leaks as well as crashes. There is also no HA story as the server is a SPOF

然而 ngrok 2.0 并没有开源..

推荐: https://github.com/fatedier/frp ngrok 的功能都能实现,并且更强大
line
2016-10-17 13:22:23 +08:00
我的 ngrok 崩溃过。 打算换其它的试下。
hteen
2016-10-17 13:29:24 +08:00
nginx 反向代理解决即可,我服务器也是这样
tonghuashuai
2016-10-17 16:37:34 +08:00
貌似只有 ssh 可以指定远程端口, http 不可以……

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/313285

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX