stabilizaiton work - projects rework for maintenanceability and ui livening
This commit is contained in:
@@ -4,6 +4,7 @@ using Microsoft.AspNetCore.RateLimiting;
|
||||
using OpenTelemetry.Resources;
|
||||
using OpenTelemetry.Trace;
|
||||
using Serilog;
|
||||
using StellaOps.Auth.ServerIntegration;
|
||||
using StellaOps.VexLens.Api;
|
||||
using StellaOps.VexLens.Consensus;
|
||||
using StellaOps.VexLens.Persistence;
|
||||
@@ -69,7 +70,11 @@ builder.Services.AddRateLimiter(options =>
|
||||
});
|
||||
});
|
||||
|
||||
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
|
||||
|
||||
builder.TryAddStellaOpsLocalBinding("vexlens");
|
||||
var app = builder.Build();
|
||||
app.LogStellaOpsLocalHostname("vexlens");
|
||||
|
||||
// Configure request pipeline
|
||||
if (app.Environment.IsDevelopment())
|
||||
@@ -77,6 +82,7 @@ if (app.Environment.IsDevelopment())
|
||||
app.MapOpenApi();
|
||||
}
|
||||
|
||||
app.UseStellaOpsCors();
|
||||
app.UseRateLimiter();
|
||||
app.UseSerilogRequestLogging();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user