31 lines
1.2 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: '',
FB_SERVER_URL: '',
};