diff --git a/services/bff/Bff.Api/Program.cs b/services/bff/Bff.Api/Program.cs index 5267f53..633eec0 100644 --- a/services/bff/Bff.Api/Program.cs +++ b/services/bff/Bff.Api/Program.cs @@ -1,7 +1,10 @@ var builder = WebApplication.CreateBuilder(args); +builder.Services.AddHealthChecks(); + var app = builder.Build(); app.MapGet("/", () => "BFF placeholder"); +app.MapHealthChecks("/health"); app.Run(); diff --git a/services/bff/Bff.Api/Properties/launchSettings.json b/services/bff/Bff.Api/Properties/launchSettings.json new file mode 100644 index 0000000..47e0b9f --- /dev/null +++ b/services/bff/Bff.Api/Properties/launchSettings.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "profiles": { + "http": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "http://localhost:5249", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "https": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "applicationUrl": "https://localhost:7106;http://localhost:5249", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/services/bff/Bff.Api/appsettings.Development.json b/services/bff/Bff.Api/appsettings.Development.json new file mode 100644 index 0000000..0c208ae --- /dev/null +++ b/services/bff/Bff.Api/appsettings.Development.json @@ -0,0 +1,8 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + } +} diff --git a/services/bff/Bff.Api/appsettings.json b/services/bff/Bff.Api/appsettings.json new file mode 100644 index 0000000..10f68b8 --- /dev/null +++ b/services/bff/Bff.Api/appsettings.json @@ -0,0 +1,9 @@ +{ + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft.AspNetCore": "Warning" + } + }, + "AllowedHosts": "*" +}