Expose YARP resource on well-known HTTPS port #11142
-
What's the best way to expose the YARP resource on a well-known HTTPS port? documentation mentions the |
Beta Was this translation helpful? Give feedback.
Answered by
engineering87
Sep 2, 2025
Replies: 1 comment 2 replies
-
Hello @Kralizek, var builder = DistributedApplication.CreateBuilder(args);
var gateway = builder.AddYarp("gateway")
.WithEndpoint(scheme: "https", hostPort: 443, isProxied: false)
.WithConfiguration(yarp =>
{
// your routes…
});
builder.Build().Run(); Make sure your YARP service is configured with a valid certificate. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try to enable HTTPS inside the YARP container by configuring Kestrel with a certificate:
and mount the pfx into
/https
. After that, map the host port.