stabilizaiton work - projects rework for maintenanceability and ui livening
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Licensed to StellaOps under the BUSL-1.1 license.
|
||||
|
||||
|
||||
using StellaOps.Auth.ServerIntegration;
|
||||
using Microsoft.AspNetCore.RateLimiting;
|
||||
using Npgsql;
|
||||
using StackExchange.Redis;
|
||||
@@ -101,7 +101,11 @@ builder.Services.AddResponseCompression(options =>
|
||||
options.EnableForHttps = true;
|
||||
});
|
||||
|
||||
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
|
||||
|
||||
builder.TryAddStellaOpsLocalBinding("reachgraph");
|
||||
var app = builder.Build();
|
||||
app.LogStellaOpsLocalHostname("reachgraph");
|
||||
|
||||
// Configure pipeline
|
||||
if (app.Environment.IsDevelopment())
|
||||
@@ -112,6 +116,7 @@ if (app.Environment.IsDevelopment())
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
app.UseResponseCompression();
|
||||
app.UseStellaOpsCors();
|
||||
app.UseRateLimiter();
|
||||
app.UseAuthorization();
|
||||
app.MapControllers();
|
||||
|
||||
Reference in New Issue
Block a user