Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

本地布署,其它电脑通过ip:port无法登入 #14

Closed
ansonliao opened this issue Sep 25, 2017 · 5 comments
Closed

本地布署,其它电脑通过ip:port无法登入 #14

ansonliao opened this issue Sep 25, 2017 · 5 comments

Comments

@ansonliao
Copy link

ansonliao commented Sep 25, 2017

Hitchhiker通过docker布署在内部网络某个电脑上(hitchhiker版本为v0.1.3),端口为1234,其它电脑通过http://ip:1234可以打开hitchhiker,但无法登入帐号,提示如下。
本电脑布署,本电脑登入没有问题。

image

@brookshi
Copy link
Owner

brookshi commented Sep 25, 2017

是windows还是linux呢,麻烦把浏览器控制台的截图发下

@ansonliao
Copy link
Author

ansonliao commented Sep 25, 2017

@brookshi
看log,是从localhost找api的。

Fetch API cannot load http://localhost:1234/api/user/login

image

@brookshi
Copy link
Owner

是不是docker-compose.yml里用的localhost呢,得用你的局域网ip

@ansonliao
Copy link
Author

@brookshi
Oh...是的,改成局域网的ip就可以了。
谢谢解答。

@lg8294
Copy link

lg8294 commented Nov 8, 2018

我是部署在公司云服务器上的,服务器做了反向代理,外网访问的是8080端口,hitchhiker配置的是8081端口,也会出现这个问题,有没有什么方法处理呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants