diff --git a/src/HttpApi/Program.cs b/src/HttpApi/Program.cs index cb281b3..9f72a50 100644 --- a/src/HttpApi/Program.cs +++ b/src/HttpApi/Program.cs @@ -7,6 +7,7 @@ using cuqmbr.TravelGuide.Application.Common.Interfaces.Services; using cuqmbr.TravelGuide.HttpApi.Services; using cuqmbr.TravelGuide.HttpApi.Middlewares; using cuqmbr.TravelGuide.HttpApi.Swashbuckle.OperationFilters; +using System.Net; using Swashbuckle.AspNetCore.SwaggerUI; using MicroElements.Swashbuckle.FluentValidation.AspNetCore; using Microsoft.OpenApi.Models; @@ -90,6 +91,13 @@ services.AddScoped(); services.AddHealthChecks(); +builder.WebHost.ConfigureKestrel((context, options) => +{ + // TODO: Make possible to configure using file/env/cli + options.Configure() + .Endpoint(new IPEndPoint(new IPAddress(0x00000000), 8080)); +}); + var app = builder.Build(); diff --git a/src/HttpApi/Properties/launchSettings.json b/src/HttpApi/Properties/launchSettings.json deleted file mode 100644 index 97084c0..0000000 --- a/src/HttpApi/Properties/launchSettings.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "profiles": { - "http": { - "commandName": "Project", - "dotnetRunMessages": true, - "launchBrowser": true, - "launchUrl": "swagger", - "applicationUrl": "http://localhost:8080" - } - } -} diff --git a/src/HttpApi/appsettings.Development.json b/src/HttpApi/appsettings.Development.json index 982fe9d..4b2b05b 100644 --- a/src/HttpApi/appsettings.Development.json +++ b/src/HttpApi/appsettings.Development.json @@ -1,11 +1,4 @@ { - "Kestrel": { - "EndPoints": { - "Http": { - "Url": "http://localhost:4300" - } - } - }, "Application": { "Logging": { "Type": "SimpleConsole", @@ -15,8 +8,7 @@ }, "Datastore": { "Type": "postgresql", - "ConnectionString": "Host=127.0.0.1:5432;Database=travel_guide;Username=postgres;Password=0000", - "PartitionName": "application" + "ConnectionString": "Host=127.0.0.1:5432;Database=travel_guide;Username=postgres;Password=0000" }, "Localization": { "DefaultCultureName": "en-US", @@ -26,8 +18,7 @@ "Identity": { "Datastore": { "Type": "postgresql", - "ConnectionString": "Host=127.0.0.1:5432;Database=travel_guide;Username=postgres;Password=0000", - "PartitionName": "identity" + "ConnectionString": "Host=127.0.0.1:5432;Database=travel_guide;Username=postgres;Password=0000" }, "JsonWebToken": { "Issuer": "https://api.travel-guide.cuqmbr.xyz",