This commit is contained in:
master
2026-02-04 19:59:20 +02:00
parent 557feefdc3
commit 5548cf83bf
1479 changed files with 53557 additions and 40339 deletions

View File

@@ -7,6 +7,7 @@
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" />

View File

@@ -1,10 +1,13 @@
{
Logging: {
LogLevel: {
Default: Information,
Microsoft.AspNetCore: Warning
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
EvidenceLocker: {
Database: {
ConnectionString: Host=localhost
"EvidenceLocker": {
"Database": {
"ConnectionString": "Host=localhost"
}
}
}

View File

@@ -1,21 +1,24 @@
{
Logging: {
LogLevel: {
Default: Information,
Microsoft.AspNetCore: Warning
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
Authority: {
ResourceServer: {
Authority: https://authority.localtest.me,
Audiences: [
api://evidence-locker
"Authority": {
"ResourceServer": {
"Authority": "https://authority.localtest.me",
"Audiences": [
"api://evidence-locker"
],
RequiredTenants: [
tenant-default
"RequiredTenants": [
"tenant-default"
]
}
},
EvidenceLocker: {
Database: {
ConnectionString: Host=localhost
"EvidenceLocker": {
"Database": {
"ConnectionString": "Host=localhost"
}
}
}

View File

@@ -1,10 +1,13 @@
using StellaOps.EvidenceLocker.Infrastructure.DependencyInjection;
using StellaOps.EvidenceLocker.Worker;
using StellaOps.Worker.Health;
var builder = Host.CreateApplicationBuilder(args);
var builder = WebApplication.CreateSlimBuilder(args);
builder.Services.AddEvidenceLockerInfrastructure(builder.Configuration);
builder.Services.AddHostedService<Worker>();
builder.Services.AddWorkerHealthChecks();
var host = builder.Build();
await host.RunAsync();
var app = builder.Build();
app.MapWorkerHealthEndpoints();
await app.RunAsync();

View File

@@ -14,10 +14,14 @@
<Nullable>enable</Nullable>
<LangVersion>preview</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<ErrorOnDuplicatePublishOutputFiles>false</ErrorOnDuplicatePublishOutputFiles>
</PropertyGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>
<ItemGroup>
@@ -35,8 +39,11 @@
<ProjectReference Include="..\StellaOps.EvidenceLocker.Infrastructure\StellaOps.EvidenceLocker.Infrastructure.csproj"/>
<ProjectReference Include="../../../../__Libraries/StellaOps.Worker.Health/StellaOps.Worker.Health.csproj"/>
</ItemGroup>

View File

@@ -1,10 +1,13 @@
{
Logging: {
LogLevel: {
Default: Information,
Microsoft.Hosting.Lifetime: Information
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.Hosting.Lifetime": "Information"
}
},
EvidenceLocker: {
Database: {
ConnectionString: Host=localhost
"EvidenceLocker": {
"Database": {
"ConnectionString": "Host=localhost"
}
}
}

View File

@@ -1,10 +1,13 @@
{
Logging: {
LogLevel: {
Default: Information,
Microsoft.Hosting.Lifetime: Information
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.Hosting.Lifetime": "Information"
}
},
EvidenceLocker: {
Database: {
ConnectionString: Host=localhost
"EvidenceLocker": {
"Database": {
"ConnectionString": "Host=localhost"
}
}
}