Services don't reflect the `host` setting
See original GitHub issueDescribe the bug
It seems that the host
is ignored. At least for ServiceType.Project
.
I need my service to be available for other remote services via a given hostname, not just on localhost.
To Reproduce
When I set services->bindings->host
it doesn’t get reflected in my app. It just falls back to localhost
:
On the other hand, the UI shows the host set correctly:
Temporarily, I overcame the issue by specifying args: --urls http://*:5000
as you can see in my yaml.
Further technical details
tye --version
: 0.5.0-alpha.20520.1+739de2eeb94f0246f50fa4993e953abb4b0da18a- Platform: Windows
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Docker Compose service volume not reflecting my host ...
The only problem I have using the following configuration is that the changes I do on my host machine files, it is not...
Read more >etc/hosts changes aren't getting reflected on Mac
I've a Spring Boot application which uses an external service. I want to reproduce a scenario where that service is not reachable after...
Read more >How to Modify Your hosts File Using Windows and Notepad
In this article, we will discuss how to modify your hosts file on your computer.
Read more >Find and fix issues after adding your domain or DNS records
Learn to track down any problems you run into while setting up a custom domain by making sure the DNS records are set...
Read more >Troubleshooting Reflection X 14.x XDMCP Connections to ...
The troubleshooting options in this note apply to XDMCP connections made from Reflection X 14.x to the most common UNIX and Linux hosts....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Extra notes from the other issue:
Describe the bug
The
host
parameter inbindings
section in tye.yml is not passed to the service/app.As a result the service is not binding to the specified IP address or hostname, and is still
localhost
.The issue was first reported in #721 . There you find more details about what line of code.
To Reproduce
Create a web project:
This is optional (just copy the config below):
Add the bindings section (substitute YOUR-IP-ADDRESS with your own IP Address or host name):
Further technical details
Tye version: 0.7.0-alpha.21205.1+ad2d7cac132e46d9bd9e1c1c064fd19f35459307. .NET version: 5.0.200
My workaround for this is using Nginx since I have a lot of services, and Ingress does not work with WebSocket requests.
tye.yaml:
nginx.conf: