change default listen endpoint to 0.0.0.0:8080

This commit is contained in:
cuqmbr 2025-04-30 13:41:36 +03:00
parent a02d750c8b
commit 16457fc2cc
Signed by: cuqmbr
GPG Key ID: 0AA446880C766199
3 changed files with 10 additions and 22 deletions

View File

@ -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();

View File

@ -1,11 +0,0 @@
{
"profiles": {
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"launchUrl": "swagger",
"applicationUrl": "http://localhost:8080"
}
}
}

View File

@ -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",