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.Services;
|
||||||
using cuqmbr.TravelGuide.HttpApi.Middlewares;
|
using cuqmbr.TravelGuide.HttpApi.Middlewares;
|
||||||
using cuqmbr.TravelGuide.HttpApi.Swashbuckle.OperationFilters;
|
using cuqmbr.TravelGuide.HttpApi.Swashbuckle.OperationFilters;
|
||||||
|
using System.Net;
|
||||||
using Swashbuckle.AspNetCore.SwaggerUI;
|
using Swashbuckle.AspNetCore.SwaggerUI;
|
||||||
using MicroElements.Swashbuckle.FluentValidation.AspNetCore;
|
using MicroElements.Swashbuckle.FluentValidation.AspNetCore;
|
||||||
using Microsoft.OpenApi.Models;
|
using Microsoft.OpenApi.Models;
|
||||||
@ -90,6 +91,13 @@ services.AddScoped<GlobalExceptionHandlerMiddleware>();
|
|||||||
|
|
||||||
services.AddHealthChecks();
|
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();
|
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": {
|
"Application": {
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"Type": "SimpleConsole",
|
"Type": "SimpleConsole",
|
||||||
@ -15,8 +8,7 @@
|
|||||||
},
|
},
|
||||||
"Datastore": {
|
"Datastore": {
|
||||||
"Type": "postgresql",
|
"Type": "postgresql",
|
||||||
"ConnectionString": "Host=127.0.0.1:5432;Database=travel_guide;Username=postgres;Password=0000",
|
"ConnectionString": "Host=127.0.0.1:5432;Database=travel_guide;Username=postgres;Password=0000"
|
||||||
"PartitionName": "application"
|
|
||||||
},
|
},
|
||||||
"Localization": {
|
"Localization": {
|
||||||
"DefaultCultureName": "en-US",
|
"DefaultCultureName": "en-US",
|
||||||
@ -26,8 +18,7 @@
|
|||||||
"Identity": {
|
"Identity": {
|
||||||
"Datastore": {
|
"Datastore": {
|
||||||
"Type": "postgresql",
|
"Type": "postgresql",
|
||||||
"ConnectionString": "Host=127.0.0.1:5432;Database=travel_guide;Username=postgres;Password=0000",
|
"ConnectionString": "Host=127.0.0.1:5432;Database=travel_guide;Username=postgres;Password=0000"
|
||||||
"PartitionName": "identity"
|
|
||||||
},
|
},
|
||||||
"JsonWebToken": {
|
"JsonWebToken": {
|
||||||
"Issuer": "https://api.travel-guide.cuqmbr.xyz",
|
"Issuer": "https://api.travel-guide.cuqmbr.xyz",
|
||||||
|
Loading…
Reference in New Issue
Block a user