简体   繁体   English

在局域网上访问流星服务器

[英]Accessing meteor server on LAN

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. 我目前在Ubuntu VM上使用Reaction Commerce( https://github.com/ongoworks/reaction ),但无法在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. 当我启动服务器时,我得到一个简单的“在http:// 本地 :3000运行的应用程序”,但是当我尝试从LAN上的另一台PC(http:// 本地IP :3000)访问此应用程序时,我被重定向到了这些PC没有运行任何内容的本地主机。

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. 我尝试将设置文件和Dockerfile更改为读取0.0.0.0而不是localhost,但这似乎没有什么区别,因为流星不断说仍在使用localhost。

Any insight on what exactly needs to be changed would be much appreciated! 对于确切需要更改的任何见解将不胜感激!

Remove the force-ssl package. 卸下force-ssl软件包。 In the app's working directory: 在应用程序的工作目录中:

meteor remove force-ssl

This will stop it redirecting. 这将停止重定向。 (Mean't to force everyone not using 127.0.0.1 or localhost onto the ROOT_URL with https) (这不是通过https强制每个不使用127.0.0.1或localhost的用户进入ROOT_URL)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM