I am writing an app using asp.net mvc
that right now runs against microsoft's kestrel
server. It works fine, and I pass values to it at startup using a hosting.json
file defined as follows;
{
"server": "Microsoft.AspNet.Server.Kestrel",
"server.urls": "http://localhost:5000;https://localhost:5001"
}
Is there any way to give the "server" a name, so that it isn't always reporting as localhost
or undefined
all the time?