stabilizaiton work - projects rework for maintenanceability and ui livening
This commit is contained in:
@@ -46,3 +46,8 @@
|
||||
|
||||
## Contacts/ownership
|
||||
- Module owner: Doctor Guild
|
||||
|
||||
## Service Endpoints
|
||||
- Development: https://localhost:10260, http://localhost:10261
|
||||
- Local alias: https://doctor.stella-ops.local, http://doctor.stella-ops.local
|
||||
- Env var: STELLAOPS_DOCTOR_URL
|
||||
|
||||
@@ -71,7 +71,7 @@ public sealed class DoctorAuthorityOptions
|
||||
/// <summary>
|
||||
/// Gets or sets the issuer URL.
|
||||
/// </summary>
|
||||
public string Issuer { get; set; } = "https://auth.stellaops.local";
|
||||
public string Issuer { get; set; } = "https://authority.stella-ops.local";
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the metadata address.
|
||||
@@ -86,7 +86,7 @@ public sealed class DoctorAuthorityOptions
|
||||
/// <summary>
|
||||
/// Gets or sets the valid audiences.
|
||||
/// </summary>
|
||||
public List<string> Audiences { get; set; } = new() { "stellaops-api" };
|
||||
public List<string> Audiences { get; set; } = new() { "stella-ops-api" };
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the required scopes.
|
||||
|
||||
@@ -56,6 +56,7 @@ builder.Services.AddOptions<DoctorServiceOptions>()
|
||||
})
|
||||
.ValidateOnStart();
|
||||
|
||||
builder.Services.AddStellaOpsCors(builder.Environment, builder.Configuration);
|
||||
builder.Services.AddRouting(options => options.LowercaseUrls = true);
|
||||
builder.Services.AddEndpointsApiExplorer();
|
||||
builder.Services.AddOpenApi();
|
||||
@@ -146,7 +147,9 @@ builder.Services.TryAddStellaRouter(
|
||||
version: typeof(Program).Assembly.GetName().Version?.ToString() ?? "1.0.0",
|
||||
routerOptions: routerOptions);
|
||||
|
||||
builder.TryAddStellaOpsLocalBinding("doctor");
|
||||
var app = builder.Build();
|
||||
app.LogStellaOpsLocalHostname("doctor");
|
||||
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
@@ -154,6 +157,7 @@ if (app.Environment.IsDevelopment())
|
||||
}
|
||||
|
||||
app.UseStellaOpsTelemetryContext();
|
||||
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:64478;http://localhost:64480"
|
||||
"applicationUrl": "https://localhost:10260;http://localhost:10261"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user