You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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.
Beta Was this translation helpful? Give feedback.
All reactions