Cesar Mendivil bc97ee0a68 feat(nginx): add Docker setup for Nginx with templated configuration
- Create Dockerfile for Nginx with envsubst for dynamic configuration.
- Add djmaster.conf.template for Nginx configuration with upstream services.
- Implement docker-entrypoint.sh to substitute environment variables in the Nginx config.
- Add README.md in nginx-examples for guidance on using the Nginx template.
- Include djmaster.conf.template in nginx-examples for local setup.
- Introduce utility functions for fetching YouTube video snippets and titles.
2026-03-18 10:35:28 -07:00

34 lines
1.3 KiB
JavaScript

/**
* Restreamer UI - Runtime Configuration
*
* This file is loaded BEFORE the React app and can be modified
* without rebuilding the application.
*
* In Docker, mount this file or generate it via entrypoint script.
*
* CORE_ADDRESS: Restreamer Core URL. Leave empty to auto-detect from window.location.
* YTDLP_URL: yt-dlp stream extractor service URL (used to extract stream_url from YouTube).
* In development this is proxied via /yt-stream by setupProxy.js.
* In production set it to the actual service URL or leave empty
* to use the built-in Caddy reverse proxy at /yt-stream/.
* FB_SERVER_URL: Facebook OAuth2 microservice URL.
* In development proxied via /fb-server by setupProxy.js.
* In production leave empty to use the built-in Caddy reverse proxy at /fb-server/.
*
* Examples:
* CORE_ADDRESS = 'https://restreamer.nextream.sytes.net'
* YTDLP_URL = 'http://192.168.1.20:8282'
* FB_SERVER_URL = '' (leave empty — Caddy proxies /fb-server → localhost:3002)
*/
window.__RESTREAMER_CONFIG__ = {
CORE_ADDRESS: '',
YTDLP_URL: '',
YTDLP_TITLES_URL: '',
FB_SERVER_URL: '',
// URL pública del servidor egress (WHIP ingest + WHEP relay).
// Ej: 'https://llmchats-whep.zuqtxy.easypanel.host'
WHIP_SERVER_URL: '',
};