stabilizaiton work - projects rework for maintenanceability and ui livening
This commit is contained in:
@@ -44,4 +44,7 @@
|
||||
## Allowed Shared Libraries
|
||||
- Only shared libs already referenced by SbomService projects; do not add new cross-module deps without sprint approval.
|
||||
|
||||
|
||||
## Service Endpoints
|
||||
- Development: https://localhost:10390, http://localhost:10391
|
||||
- Local alias: https://sbomservice.stella-ops.local, http://sbomservice.stella-ops.local
|
||||
- Env var: STELLAOPS_SBOMSERVICE_URL
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
|
||||
using Microsoft.AspNetCore.Authentication;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using StellaOps.Auth.ServerIntegration;
|
||||
using Microsoft.Extensions.Options;
|
||||
using StellaOps.SbomService.Auth;
|
||||
using StellaOps.SbomService.Models;
|
||||
@@ -229,13 +230,18 @@ static int NormalizeLimit(int? requested, int defaultValue, int ceiling)
|
||||
return Math.Min(requested.Value, ceiling);
|
||||
}
|
||||
|
||||
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
|
||||
|
||||
builder.TryAddStellaOpsLocalBinding("sbomservice");
|
||||
var app = builder.Build();
|
||||
app.LogStellaOpsLocalHostname("sbomservice");
|
||||
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseDeveloperExceptionPage();
|
||||
}
|
||||
|
||||
app.UseStellaOpsCors();
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
|
||||
|
||||
@@ -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:62535;http://localhost:62537"
|
||||
"applicationUrl": "https://localhost:10390;http://localhost:10391"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user