-
Notifications
You must be signed in to change notification settings - Fork 0
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
How to specify the host #3
Comments
If thats the adress to bind to, you can use |
btw, he cannot bind to that adress because the DNS lookup for that hostnames gives the IP of our loadbalancer and no local network interface has that IP. |
I can not use |
I guess you need to configure the host value of the bootstrapper slightly. Maybe https://github.com/NancyFx/Nancy/wiki/Self-Hosting-Nancy helps? I can't find any API documentation :( |
Could be. I tried to set fool around with This:
throws the error
which I don't get since it seems in the right namespace: https://github.com/NancyFx/Nancy/blob/master/src/Nancy.Hosting.Self/HostConfiguration.cs Maybe the included DLL is old. |
leave the package. You are already |
That didnt help
|
I had the same issue this afternoon... After some try, I managed to run my nancy webapp without error by using the Katana - HttpListener instead of NancyHost :
|
@MikAdoo Do you have that running with this or some other repo? I can't get it to run. |
i have submitted a pull request |
Thanks for the PR. Works great locally. Unfortunately I can't start it on our hosting. Since I can't bind the address
I'm used to bind to all IP addresses via 0.0.0.0. But if I specify that via
I get the error |
Arf.... Before my pull request, I also encountered the bind issue. This morning I tested my update on a digital ocean linux vm and everything worked fine. I made another test right now on my computer on windows, boot2docker and custom hostname in my etc/host and the container still works fine. Could you tell me more about your own environment? Did you try with |
@MikAdoo Thanks a lot! |
Cool! You are welcome. |
Mono / Nancy seems to require set the hostname. But if I hardcoded it:
I can't bind it:
swarm.json see:
https://github.com/luebken/nancy-demo-hosting-docker/blob/swarmify/swarm.json
The text was updated successfully, but these errors were encountered: