端口设置5036

master
smartwyy 6 months ago
parent 58728b3861
commit 061a77b52e

@ -91,6 +91,12 @@ 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();
var listen = builder.Configuration.GetSection("Listen"); var listen = builder.Configuration.GetSection("Listen");

@ -23,5 +23,12 @@
"Listen": { "Listen": {
"Port": 5588 "Port": 5588
}, },
"Kestrel": {
"Endpoints": {
"http": {
"Url": "http://0.0.0.0:5036"
}
}
},
"AllowedHosts": "*" "AllowedHosts": "*"
} }

Loading…
Cancel
Save