-
Notifications
You must be signed in to change notification settings - Fork 120
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
localhost access denied when custom conf.yaml is mounted in docker #15
Comments
Hey @gmara13 welcome to IBeam! 😊 Sorry to hear the conf.yaml is causing you some issues. Could I ask you to share the contents of your conf.yaml file here - make sure you hide the cacert password if you do - so we could understand what may be causing that issue? Also, are you running IBeam as a standalone or as a Docker image? |
its the same default file with the only addition of the ip allowed. conf works to allow that specified ip so settings are being passed |
Great, thanks for providing the conf file! I think I can see where the issue is. The original ips/allow looks like this:
While yours contains that Alternatively, I'd also try verify that this |
ah sorry mate. this was a typo from when i copied the text into github and tried to format it. the '' is actually present in '192.' and the 'xxx' are just placeholders to cover my ip. the below is what is present in the conf
|
Right, thanks for clarifying that 👍 Could you then share the code or command you use to communicate with the gateway (make sure to remove any credentials)? A 404 error sounds more like an incorrect endpoint. Also please share the full output of the command. |
so once the gateway is up im just using simple requests in python: here is NOT working from server: if i take off the mounted conf.yaml though the localhost url works |
Thanks for all that info 👍 Can I ask you to add this IP: I think I might have been incorrect in that IBeam uses the default config.yaml. |
|
Can you try this as the conf.yaml:
And try again? |
Solved! the addition of 172.17.0.0 solved the connection issue |
I'm glad that it helped! 😄 Although at the same time I'm puzzled as to why this would have fixed it. This is a docker-internal IP. I'm going to look into this when I find some time. |
Right, I can't figure it why exactly but indeed that |
Updated Wiki documentation to clarify what the default https://github.com/Voyz/ibeam/wiki/Gateway-Configuration Marking this issue as closed 👍 |
ibeam has bee working fine with default set up. have ben testing requests on the server that ibeam is running on by hitting localhost:5000 url just fine. mounted a volume with conf.yaml that allows ip access from my local machine and access is confirmed but now localhost:5000 access is denied when running requests from the server ibeam is on. nothing changed on conf.yaml from default except for adding one ip under allowed ips. tried changing url to 127.0.0.1, 0.0.0.0, etc nothing works, keep getting 404 response.
The text was updated successfully, but these errors were encountered: