change default listen endpoint to 0.0.0.0:8080
This commit is contained in:
parent
a02d750c8b
commit
16457fc2cc
@ -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<GlobalExceptionHandlerMiddleware>();
|
||||
|
||||
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();
|
||||
|
@ -1,11 +0,0 @@
|
||||
{
|
||||
"profiles": {
|
||||
"http": {
|
||||
"commandName": "Project",
|
||||
"dotnetRunMessages": true,
|
||||
"launchBrowser": true,
|
||||
"launchUrl": "swagger",
|
||||
"applicationUrl": "http://localhost:8080"
|
||||
}
|
||||
}
|
||||
}
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user