mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
feat: pass baseUrl in Easynews++ config and add optional EASYNEWS_PLUS_PLUS_PUBLIC_URL.
This commit is contained in:
@@ -540,6 +540,10 @@ export const Settings = cleanEnv(process.env, {
|
||||
default: 'https://easynews-cloudflare-worker.jqrw92fchz.workers.dev/',
|
||||
desc: 'Easynews++ URL',
|
||||
}),
|
||||
EASYNEWS_PLUS_PLUS_PUBLIC_URL: url({
|
||||
default: undefined,
|
||||
desc: 'Easynews++ public URL',
|
||||
}),
|
||||
DEFAULT_EASYNEWS_PLUS_PLUS_TIMEOUT: num({
|
||||
default: undefined,
|
||||
desc: 'Default Easynews++ timeout',
|
||||
|
||||
@@ -57,6 +57,9 @@ const getEasynewsPlusPlusConfigString = (
|
||||
showQualities: '4k,1080p,720p,480p',
|
||||
maxResultsPerQuality: '',
|
||||
maxFileSize: '',
|
||||
baseUrl: (
|
||||
Settings.EASYNEWS_PLUS_PLUS_PUBLIC_URL || Settings.EASYNEWS_PLUS_PLUS_URL
|
||||
).replace(/\/$/, ''),
|
||||
};
|
||||
return encodeURIComponent(JSON.stringify(options));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user