fix: honor an installation HTTP private-host allowlist for Evidence

This commit is contained in:
2026-08-11 19:48:13 +02:00
parent 0986125327
commit 657c117425
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -201,6 +201,8 @@ function createProductionService(): WorkspacePreprocessingService {
});
return new WorkspacePreprocessingService({
dataRoot: config.dataRoot ?? "/data",
httpPrivateHostAllowlist: (process.env.THT_EVIDENCE_PRIVATE_HOST_ALLOWLIST ?? "")
.split(",").map((value) => value.trim()).filter((value) => value.length > 0),
acquireActiveRuntime: async (workspaceId) => {
const active = await renderActiveWorkspaceRuntime({
workspaceId,