端口配置

master
smartwyy 5 months ago
parent f2ef5fa375
commit 6e75810b2b

@ -147,6 +147,11 @@ app.UseAuthorization();
app.UseCors("myCors");
app.MapControllers();
var list = AppSettingsHelper.GetContent("Kestrel", "Endpoints", "http", "Url");
foreach (var s in list.Split(";"))
{
app.Urls.Add(s);
}
AppInfo.Container = app.Services.GetAutofacRoot();

@ -68,5 +68,12 @@
"HttpContextRequest": {
"Scheme": "http://0.0.0.0:5034"
},
"Kestrel": {
"Endpoints": {
"http": {
"Url": "http://0.0.0.0:5034"
}
}
}
}

Loading…
Cancel
Save