端口配置5035

zw
smartwyy 6 months ago
parent b87337b8d9
commit 9986739ce8

@ -90,8 +90,13 @@ app.UseAuthorization();
app.UseCors("myCors"); app.UseCors("myCors");
app.MapControllers(); app.MapControllers();
AppInfo.Container = app.Services.GetAutofacRoot(); var list = AppSettingsHelper.GetContent("Kestrel", "Endpoints", "http", "Url");
foreach (var s in list.Split(";"))
{
app.Urls.Add(s);
}
AppInfo.Container = app.Services.GetAutofacRoot();
ClientMgr.InitClient(); ClientMgr.InitClient();
app.Run(); app.Run();

@ -20,5 +20,12 @@
"Microsoft.AspNetCore": "Warning" "Microsoft.AspNetCore": "Warning"
} }
}, },
"Kestrel": {
"Endpoints": {
"http": {
"Url": "http://0.0.0.0:5035"
}
}
},
"AllowedHosts": "*" "AllowedHosts": "*"
} }

Loading…
Cancel
Save