Skip to content

Commit e605357

Browse files
authored
Add xAPI configuration for Blueprint API (#47)
- Configure xAPI settings in AppHost for Blueprint (endpoint, credentials, URLs) - Enable LRsql in blueprint.env for xAPI support - Uses same ConfigureXApi helper as CITE and Gallery Co-authored-by: Adam Welle <arwelle@sei.cmu.edu>
1 parent 7167e6c commit e605357

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.env/blueprint.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
Launch__Blueprint=true
2+
Launch__Lrsql=true

Crucible.AppHost/AppHost.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,11 @@ public static void AddBlueprint(this IDistributedApplicationBuilder builder, IRe
571571
.WithEnvironment("ResourceOwnerAuthorization__Scope", "player player-vm gallery steamfitter cite")
572572
.WithEnvironment("ResourceOwnerAuthorization__ValidateDiscoveryDocument", "false");
573573

574+
if (options.Lrsql)
575+
{
576+
ConfigureXApi(blueprintApi, "blueprint", "http://localhost:4724/api/", "http://localhost:4725/");
577+
}
578+
574579
var blueprintUiRoot = "/mnt/data/crucible/blueprint/blueprint.ui";
575580

576581
File.Copy($"{builder.AppHostDirectory}/resources/blueprint.ui.json", $"{blueprintUiRoot}/src/assets/config/settings.env.json", overwrite: true);

0 commit comments

Comments
 (0)