-
Notifications
You must be signed in to change notification settings - Fork 805
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
Resolve dns hostname when ipv4/ipv6 hosts are reported by IServerAddressFeature #410 #442
Conversation
Is this deployed on NUGET ? |
@CarlosLanderas I opened an issue directly refering to this : #553 |
After talking with a Microsoft member here: We decided is just easier to setup a dns name. Just configure it to use localhost. |
Thank you. Something like this ?
|
@NicolasREY69330 yes, this should work. However, I don't use to specify the ASPNETCORE_URLS because if you expose 80 and 443 in the DockerFile you just need to specify ports like:
|
I had this problem yesterday and tried to add UseUrls(http://localhost). I can see it works if I get the logs of the pod running but if I try to access my .net core application through my custom dns it gives me 502 bad gateway nginx. I´m using an ingress to deploy to kubernetes. Can someone explain to me what am I missing? Regards |
Hi, I've been trying so many things to fix this issues. Ultimately, im trying to deploy on Azure WebApp for Linux Container, but for now i cant get it to work even on my local machine. Everything work except this. I tried settings env variable with urls: "http://localhost:80;https://localhost:443", but then even the index break. I tried to set absolute address on health endpoint, but without success. I changed Kestrel UseUrls to localhost, without success. Any tips ? |
@MaxThom I've the same problem, actually my workaround (while developing and testing on docker locally) is to add an environment variable that sets the appsettings HealthChecks Uri in my docker-compose.override.yml I have
My appsettings.json contains the healtcheck configuration that got overridden by docker-compose environment variable above
|
What this PR does / why we need it:
Allows resolve dns host when ipv4/ipv6 address formats are reported from IServerAddressFeature.
Formats like : [::], 0.0.0.0
Which issue(s) this PR fixes:
#410