'use strict'; /** * Environment-derived config, read once at startup. Its own tiny module * (rather than living inside AuthService, which used to own * EMBY_SERVER_URL) since both AuthService and CatalogService/EmbyClient * need it, and there's no reason CatalogService should have to depend on * AuthService just to read a URL. */ export const EMBY_SERVER_URL = (process.env.EMBY_SERVER_URL || '').replace(/\/+$/, ''); if (!EMBY_SERVER_URL) { console.warn( '[watchparty] EMBY_SERVER_URL is not set - every Emby call will fail. ' + 'Set it to your Emby server base URL, e.g. https://theater.media.kyuno.fr' ); } export const PORT = Number(process.env.PORT) || 3000;