davidfowl / MultiProtocolAspNetCore

253 stars 32 forks source link

How to setup multiples endpoints protocols via appsettings.json #6

Open alexsandro-xpt opened 5 years ago

alexsandro-xpt commented 5 years ago

@davidfowl How to configure Kestrel with two endpoints with JSON appsettings.json one set as HTTP2 Protocols and other with HTTP1 Protocols.

https://github.com/davidfowl/MultiProtocolAspNetCore/blob/73249141dff878bb5937b1895c101da49d4d4b0b/KestrelTcpDemo/Program.cs#L25-L37

davidfowl commented 5 years ago

There's a doc on that https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-3.0#configureiconfiguration