From 9e2242093c32c6e6537e32e52fae7f7f97996f17 Mon Sep 17 00:00:00 2001 From: WebStreamr <210764791+webstreamr@users.noreply.github.com> Date: Tue, 24 Jun 2025 19:27:01 +0000 Subject: [PATCH] feat: pre-load ElfHosted MediaFlow Proxy config URL --- src/controller/ConfigureController.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/controller/ConfigureController.ts b/src/controller/ConfigureController.ts index 00049d6..251ba55 100644 --- a/src/controller/ConfigureController.ts +++ b/src/controller/ConfigureController.ts @@ -21,6 +21,11 @@ export class ConfigureController { private getConfigure(req: Request, res: Response) { const config: Config = JSON.parse(req.params['config'] || JSON.stringify(getDefaultConfig())); + // Convenience preset for ElfHosted WebStreamr bundle including Media Flow Proxy + if (!req.params['config'] && req.host.endsWith('elfhosted.com')) { + config.mediaFlowProxyUrl = `${req.protocol}://${req.host.replace('webstreamr', 'mediaflow-proxy')}`; + } + const manifest = buildManifest(this.sources, config); res.setHeader('content-type', 'text/html');