Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions EstateManagementUI.BlazorServer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,12 @@ Uri ValidateAndCreateUri(string url, string configKey)
var healthChecks = builder.Services.AddHealthChecks();
if (testMode == TestMode.Disabled)
{
healthChecks.AddSecurityService();
healthChecks.AddSecurityService(Helpers.ApiEndpointHttpHandler);
}

healthChecks.AddUrlGroup(estateReportingUri, name: "Estate Reporting API", tags: new[] { "estateapi" });
healthChecks.AddUrlGroup(estateReportingUri, name: "Estate Reporting API", tags: new[] { "estateapi" })
.AddTransactionProcessorService()
.AddFileProcessorService();

if (testMode == TestMode.Disabled)
{
Expand Down Expand Up @@ -204,3 +206,19 @@ enum TestMode {
BackedByTestDataStore,
Full
}

static class Helpers {
public static HttpClientHandler ApiEndpointHttpHandler(IServiceProvider serviceProvider)
{
return new HttpClientHandler
{
ServerCertificateCustomValidationCallback = (message,
cert,
chain,
errors) =>
{
return true;
Comment thread
StuartFerguson marked this conversation as resolved.
Resolved
}
};
}
}
Loading