@ -91,6 +91,12 @@ 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();
var listen = builder.Configuration.GetSection("Listen");
@ -23,5 +23,12 @@
"Listen": {
"Port": 5588
},
"Kestrel": {
"Endpoints": {
"http": {
"Url": "http://0.0.0.0:5036"
"AllowedHosts": "*"