@ -90,8 +90,13 @@ app.UseAuthorization();
app.UseCors("myCors");
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);
}
ClientMgr.InitClient();
app.Run();
@ -20,5 +20,12 @@
"Microsoft.AspNetCore": "Warning"
},
"Kestrel": {
"Endpoints": {
"http": {
"Url": "http://0.0.0.0:5035"
"AllowedHosts": "*"