C
C#•6mo ago
Poller

Kestrel https url binding warning

I have the testapplication in screenshot 1. on startup i get a warning that i want to understand and in best case get rid of.(screenshot 2). any idea on this topic? i tried different things, but the baseline is: i dont know exactly what in my setup creates the warning and why.
No description
No description
4 Replies
becquerel
becquerel•6mo ago
it's probably happening because you have the localhost:5000 urls specified in your appsettings.json, rather than your project's launchSettings.json this is fine and not an issue if you are learning there are deliberately lots of ways you can set the urls for your apps
becquerel
becquerel•6mo ago
Andrew Lock | .NET Escapades
5 ways to set the URLs for an ASP.NET Core app
In this post I describe 5 different ways to set which URLs your ASP.NET Core application listens on.
becquerel
becquerel•6mo ago
is a good post you typically use launchSettings.json when doing local development just because it's easy and separate from appsettings.json, which is more meant for config related to your actual app (as opposed to how your app is being hosted) when you deploy to IIS or something, in a real-world scenario, you wouldn't set the urls in appsettings.json
Poller
PollerOP•6mo ago
not learning. i was just looking into redirect and configure ssl via appsettings.json. i would not deploy to IIS any day 😄 i usually run all the services in a unix context(bare or container is close to the same)
Want results from more Discord servers?
Add your server