stabilizaiton work - projects rework for maintenanceability and ui livening
This commit is contained in:
@@ -235,6 +235,7 @@ builder.Services.AddSingleton<IRuntimeEvaluationExecutor, RuntimeEvaluationExecu
|
||||
builder.Services.AddVexDecisionEmitter(); // POLICY-VEX-401-006
|
||||
|
||||
builder.Services.AddHttpContextAccessor();
|
||||
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
|
||||
builder.Services.AddRouting(options => options.LowercaseUrls = true);
|
||||
builder.Services.AddProblemDetails();
|
||||
builder.Services.AddHealthChecks();
|
||||
@@ -302,8 +303,11 @@ if (bootstrap.Options.Authority.Enabled)
|
||||
});
|
||||
}
|
||||
|
||||
builder.TryAddStellaOpsLocalBinding("policy-engine");
|
||||
var app = builder.Build();
|
||||
app.LogStellaOpsLocalHostname("policy-engine");
|
||||
|
||||
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:62533;http://localhost:62534"
|
||||
"applicationUrl": "https://localhost:10140;http://localhost:10141"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user