stabilizaiton work - projects rework for maintenanceability and ui livening
This commit is contained in:
@@ -59,3 +59,7 @@ Manage the attestation and proof chain infrastructure for StellaOps:
|
||||
- Keep Offline Kit parity in mind???document air-gapped workflows for any new feature.
|
||||
- Update runbooks/observability assets when operational characteristics change.
|
||||
|
||||
## Service Endpoints
|
||||
- Development: https://localhost:10040, http://localhost:10041
|
||||
- Local alias: https://attestor.stella-ops.local, http://attestor.stella-ops.local
|
||||
- Env var: STELLAOPS_ATTESTOR_URL
|
||||
|
||||
@@ -5,6 +5,7 @@ using Microsoft.Extensions.Options;
|
||||
using StellaOps.Attestor.Core.Options;
|
||||
using StellaOps.Attestor.WebService;
|
||||
using StellaOps.Configuration;
|
||||
using StellaOps.Auth.ServerIntegration;
|
||||
using StellaOps.Router.AspNet;
|
||||
using System.Text.Encodings.Web;
|
||||
|
||||
@@ -27,6 +28,8 @@ var clientCertificateAuthorities = AttestorWebServiceComposition.LoadClientCerti
|
||||
builder.AddAttestorWebService(attestorOptions, ConfigurationSection);
|
||||
builder.WebHost.ConfigureAttestorKestrel(attestorOptions, clientCertificateAuthorities);
|
||||
|
||||
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
|
||||
|
||||
// Stella Router integration
|
||||
var routerOptions = builder.Configuration.GetSection("Attestor:Router").Get<StellaRouterOptionsBase>();
|
||||
builder.Services.TryAddStellaRouter(
|
||||
@@ -34,8 +37,11 @@ builder.Services.TryAddStellaRouter(
|
||||
version: typeof(Program).Assembly.GetName().Version?.ToString() ?? "1.0.0",
|
||||
routerOptions: routerOptions);
|
||||
|
||||
builder.TryAddStellaOpsLocalBinding("attestor");
|
||||
var app = builder.Build();
|
||||
app.LogStellaOpsLocalHostname("attestor");
|
||||
|
||||
app.UseStellaOpsCors();
|
||||
app.UseAttestorWebService(attestorOptions, routerOptions);
|
||||
|
||||
app.Run();
|
||||
|
||||
@@ -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:62507;http://localhost:62508"
|
||||
"applicationUrl": "https://localhost:10040;http://localhost:10041"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user