diff --git a/WebStarter/Program.cs b/WebStarter/Program.cs index b8ef083..55ac4e6 100644 --- a/WebStarter/Program.cs +++ b/WebStarter/Program.cs @@ -147,6 +147,11 @@ 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(); diff --git a/WebStarter/appsettings.json b/WebStarter/appsettings.json index 5f58c13..c9a1fbc 100644 --- a/WebStarter/appsettings.json +++ b/WebStarter/appsettings.json @@ -68,5 +68,12 @@ "HttpContextRequest": { "Scheme": "http://0.0.0.0:5034" + }, + "Kestrel": { + "Endpoints": { + "http": { + "Url": "http://0.0.0.0:5034" + } + } } }