端口配置

master
smartwyy 6 months ago
parent f2ef5fa375
commit 6e75810b2b

@ -147,6 +147,11 @@ app.UseAuthorization();
app.UseCors("myCors"); app.UseCors("myCors");
app.MapControllers(); 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(); AppInfo.Container = app.Services.GetAutofacRoot();

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

Loading…
Cancel
Save