在局域网上访问流星服务器 [英] Accessing meteor server on LAN

查看:123
本文介绍了在局域网上访问流星服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用Response Commerce( https://github.com/ongoworks/reaction )在我的Ubuntu VM上,但无法在LAN上的其他任何地方查看它.当我启动服务器时,我得到一个简单的在http:// local :3000运行的应用程序",但是当我尝试从LAN上的另一台PC(http:// local IP :3000)我被重定向到未运行任何内容的PC本地主机.

I'm currently using Reaction Commerce (https://github.com/ongoworks/reaction) on my Ubuntu VM but I'm unable to view it anywhere else on my LAN. When I launch the server I get a simple "App running at http://local:3000" but when I try to access this from another PC on the LAN (http://local IP:3000) I am redirected to that PCs localhost which isn't running anything.

我尝试将设置文件和Dockerfile更改为读取0.0.0.0而不是localhost,但这似乎没有什么区别,因为流星不断表示仍在使用localhost.

I've tried changing the settings file and Dockerfile to read 0.0.0.0 instead of localhost but it seems to make little difference as meteor continuously says the localhost is still being used.

任何对真正需要更改的见解将不胜感激!

Any insight on what exactly needs to be changed would be much appreciated!

推荐答案

删除force-ssl程序包.在应用程序的工作目录中:

Remove the force-ssl package. In the app's working directory:

meteor remove force-ssl

这将停止重定向. (这不是通过https强制每个不使用127.0.0.1或localhost的用户进入ROOT_URL)

This will stop it redirecting. (Mean't to force everyone not using 127.0.0.1 or localhost onto the ROOT_URL with https)

这篇关于在局域网上访问流星服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆