Exporting beyond localhost. #1846
Adrian Holland (hollandar)
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Good evening,
Is there a way to expose a service on the machine address rather than localhost. This is for multitenancy by DNS name.
I would like .WithServiceBinging(hostPort: 8443, scheme: "http", name: "ext") to expose the port on the machine IP, such that http://192.168.1.63:8080 works the same as http://localhost:8080/ works currently with Aspire.
In the end I want http://tenant1.app.local:8080/ to work when that domain maps to the local machine in /etc/hosts.
If hosts contains 127.0.0.1 tenant1.app.local, it works fine, but if the machine IP is used in the hosts file it does not, nor does it work when the DNS entry is placed into an external but local DNS server.
This would get the dev environment a little closer to representing production deployment, and allows local network testing from external devices.
Any plans for this scenario, or is it currently supported in some way?
Kind regards,
Adrian.
All reactions