Seq API Key support and package updates #10

Merged
thomas.nuyken merged 7 commits from prepare-for-prod into production 2025-09-21 11:52:09 +02:00
Showing only changes of commit a10070b9c7 - Show all commits

View File

@@ -34,7 +34,14 @@ public static class DependencyInjectionExtensions
string? seqHost = builder.Configuration.GetConnectionString("seq"); string? seqHost = builder.Configuration.GetConnectionString("seq");
if (!string.IsNullOrEmpty(seqHost)) if (!string.IsNullOrEmpty(seqHost))
{ {
builder.AddSeqEndpoint("seq"); builder.AddSeqEndpoint("seq", o =>
{
var apiKey = builder.Configuration.GetValue<string>("seq-api-key");
if (!string.IsNullOrEmpty(apiKey))
{
o.ApiKey = apiKey;
}
});
} }
return builder; return builder;