-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Port sharing using Kestrel+YARP #39640
Comments
Thanks for contacting us. We're moving this issue to the |
Configuration stuff can be incremental; we don't need to nail it down entirely for 7 since we can always add more later. |
Any update on this? |
Our goto solution for port sharing is YARP. We should have a sample somewhere on how to set it up (cc @Tratcher) but the end to end isn't as smooth as it could be. It still requires manual code and configuration, but it works. |
@davidfowl thats great! |
@rizi the general YARP docs are here: https://microsoft.github.io/reverse-proxy/articles/config-files.html. You don't have to do anything special from YARP's perspective for the port sharing scenario, just set up routes to decide which destination gets which requests (e.g. by host, path, etc.). Would you want TLS/HTTPS enabled on the shared port using different host names / certificates? Then you'd need to configure Kestrel with multiple certs. https://learn.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel/endpoints?view=aspnetcore-7.0#configure-endpoints-using-server-name-indication |
This is the sample I worked on at some point https://github.com/sebastienros/udssample |
Story for tracking a port-sharing experience using Kestrel + YARP
The text was updated successfully, but these errors were encountered: