stabilizaiton work - projects rework for maintenanceability and ui livening
This commit is contained in:
@@ -31,3 +31,7 @@ Deliver the VexHub aggregation service that normalizes, validates, and distribut
|
||||
- Add unit and integration tests for pipelines and APIs with deterministic fixtures.
|
||||
- Prefer Postgres-backed tests via Testcontainers; no external network usage.
|
||||
|
||||
## Service Endpoints
|
||||
- Development: https://localhost:10110, http://localhost:10111
|
||||
- Local alias: https://vexhub.stella-ops.local, http://vexhub.stella-ops.local
|
||||
- Env var: STELLAOPS_VEXHUB_URL
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
|
||||
using Serilog;
|
||||
using StellaOps.Auth.ServerIntegration;
|
||||
using StellaOps.Router.AspNet;
|
||||
using StellaOps.VexHub.Core.Extensions;
|
||||
using StellaOps.VexHub.Persistence.Extensions;
|
||||
@@ -53,7 +54,11 @@ builder.Services.TryAddStellaRouter(
|
||||
version: System.Reflection.Assembly.GetExecutingAssembly().GetName().Version?.ToString() ?? "1.0.0",
|
||||
routerOptions: routerOptions);
|
||||
|
||||
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
|
||||
|
||||
builder.TryAddStellaOpsLocalBinding("vexhub");
|
||||
var app = builder.Build();
|
||||
app.LogStellaOpsLocalHostname("vexhub");
|
||||
|
||||
// Configure the HTTP request pipeline
|
||||
if (app.Environment.IsDevelopment())
|
||||
@@ -68,6 +73,7 @@ app.UseSerilogRequestLogging();
|
||||
app.UseVexHubRateLimiting();
|
||||
|
||||
// Add authentication and authorization
|
||||
app.UseStellaOpsCors();
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
app.TryUseStellaRouter(routerOptions);
|
||||
|
||||
@@ -4,9 +4,11 @@
|
||||
"commandName": "Project",
|
||||
"launchBrowser": true,
|
||||
"environmentVariables": {
|
||||
"ASPNETCORE_ENVIRONMENT": "Development"
|
||||
"ASPNETCORE_ENVIRONMENT": "Development",
|
||||
"STELLAOPS_WEBSERVICES_CORS": "true",
|
||||
"STELLAOPS_WEBSERVICES_CORS_ORIGIN": "https://stella-ops.local,https://stella-ops.local:10000,https://localhost:10000"
|
||||
},
|
||||
"applicationUrl": "https://localhost:62549;http://localhost:62550"
|
||||
"applicationUrl": "https://localhost:10110;http://localhost:10111"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user