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');