-
Notifications
You must be signed in to change notification settings - Fork 3
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
nelson.cli in other cotainer #3
Comments
Hi Antonio, you have to run nelson.cli with "--apiHostname 0.0.0.0" so that it listens to non-local connections. Then you run nelson.gui and access it in your browser like:
|
Hi, my nelson.cli is running on 0.0.0.0 inside a docker container with hostname nelson.cli, nelson.mon is working with this setup. But from my understanding nelson.gui if I set http://SERVERIP:5000/nelson.cli/18600 makes my browser which run on my notebook (not server), try to connect to the host nelson.cli. All the best, |
Then, instead of "nelson.cli" you have to use your server ip: http://SERVERIP:5000/SERVERIP/18600 |
OMG, of course.. that's clear! Thanks again! |
Sorry, have to reopen it. |
This IP address looks like an internal/local address. Is your browser running on a machine in the same network so it knows how to access that IP? |
Yes, the browser has access to that IP. |
Hi, I've tried with the new version and added username and password.
gives:
This one:
Gives a blank page. |
Hello Roman,
I'm again trying to build a docker-compose file.
My setup:
nelson.mon is connecting to nelson.cli:18600 and works fine.
nelson.gui runs on 10.0.0.x:5000 and can ping nelson.cli if I'm inside the cotainer, but is not able to connect to nelson.cli:18600. I've also tried: http://10.0.0.x:5000/nelson.cli/18600, with no success.
From what I understand (please bear with me, I'm not a developer), the nelson.gui is trying to connect to localhost:18600 through my browser, therefore cannot see the server. If i go to http://10.0.0.x:5000/nelson.cli/18600 it's still my browser trying to connect to nelson.cli.
My browser is running on my notebook, while nelson.cli is running on my server and my notebook doesn't know anything about nelson.cli.
This means that the nelson.gui is not talking to nelson.cli, but my notebook is, this may never work for similar setups. Please tell me if I'm wrong with this assumption.
To make it work, I had to give nelson.cli a public hostname like nelsoncli.mydomain.com and modify /src/redux/nelson-api.js to point to this url.
At this point the nelson.gui started working.
Is this by design or am I just hacking around in the blind and there is an easier way?
Thanks,
Antonio
The text was updated successfully, but these errors were encountered: