Skip to content

Commit 47f3c33

Browse files
committed
make workload api listen host configurable
1 parent ff6359c commit 47f3c33

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apps/supervisor/src/env.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const Env = z.object({
2626
.transform((s) => z.enum(["http", "https"]).parse(s.toLowerCase()))
2727
.default("http"),
2828
TRIGGER_WORKLOAD_API_DOMAIN: z.string().optional(), // If unset, will use orchestrator-specific default
29+
TRIGGER_WORKLOAD_API_HOST_INTERNAL: z.string().default("0.0.0.0"),
2930
TRIGGER_WORKLOAD_API_PORT_INTERNAL: z.coerce.number().default(8020), // This is the port the workload API listens on
3031
TRIGGER_WORKLOAD_API_PORT_EXTERNAL: z.coerce.number().default(8020), // This is the exposed port passed to the run controller
3132

apps/supervisor/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ class ManagedSupervisor {
234234
// Responds to workload requests only
235235
this.workloadServer = new WorkloadServer({
236236
port: env.TRIGGER_WORKLOAD_API_PORT_INTERNAL,
237+
host: env.TRIGGER_WORKLOAD_API_HOST_INTERNAL,
237238
workerClient: this.workerSession.httpClient,
238239
checkpointClient: this.checkpointClient,
239240
});

0 commit comments

Comments
 (0)