stabilizaiton work - projects rework for maintenanceability and ui livening
This commit is contained in:
@@ -8,6 +8,7 @@ using StellaOps.BinaryIndex.Core.Resolution;
|
||||
using StellaOps.BinaryIndex.VexBridge;
|
||||
using StellaOps.BinaryIndex.WebService.Middleware;
|
||||
using StellaOps.BinaryIndex.WebService.Services;
|
||||
using StellaOps.Auth.ServerIntegration;
|
||||
using StellaOps.BinaryIndex.WebService.Telemetry;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
@@ -58,7 +59,11 @@ builder.Services.AddResolutionRateLimiting(options =>
|
||||
builder.Services.AddHealthChecks()
|
||||
.AddRedis(redisConnectionString, name: "redis");
|
||||
|
||||
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
|
||||
|
||||
builder.TryAddStellaOpsLocalBinding("binaryindex");
|
||||
var app = builder.Build();
|
||||
app.LogStellaOpsLocalHostname("binaryindex");
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
if (app.Environment.IsDevelopment())
|
||||
@@ -67,6 +72,7 @@ if (app.Environment.IsDevelopment())
|
||||
app.UseSwaggerUI();
|
||||
}
|
||||
|
||||
app.UseStellaOpsCors();
|
||||
app.UseHttpsRedirection();
|
||||
app.UseResolutionRateLimiting();
|
||||
app.UseAuthorization();
|
||||
|
||||
Reference in New Issue
Block a user