X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fextra-utils%2Fserver%2Fconfig.ts;h=026a5e61c3e4869362bb537b6b9d04fce40849cf;hb=4024c44f9027a32809931de0692d40d001df721c;hp=5152ec693218499fa43cdf9e6be2ad3e8f4145d1;hpb=3da68f0a781ebd893521e2e6fa200280c92ae815;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/extra-utils/server/config.ts b/shared/extra-utils/server/config.ts index 5152ec693..026a5e61c 100644 --- a/shared/extra-utils/server/config.ts +++ b/shared/extra-utils/server/config.ts @@ -69,12 +69,6 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti defaultNSFWPolicy: 'blur', defaultClientRoute: '/videos/recently-added', - defaultTrendingRoute: '/videos/trending', - pages: { - hot: { - enabled: true - } - }, customizations: { javascript: 'alert("coucou")', @@ -96,6 +90,9 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti }, captions: { size: 3 + }, + torrents: { + size: 4 } }, signup: { @@ -118,6 +115,8 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti allowAdditionalExtensions: true, allowAudioFiles: true, threads: 1, + concurrency: 3, + profile: 'default', resolutions: { '0p': false, '240p': false, @@ -144,6 +143,7 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti transcoding: { enabled: true, threads: 4, + profile: 'default', resolutions: { '240p': true, '360p': true, @@ -157,6 +157,7 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti }, import: { videos: { + concurrency: 3, http: { enabled: false }, @@ -165,6 +166,14 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti } } }, + trending: { + videos: { + algorithms: { + enabled: [ 'best', 'hot', 'most-viewed', 'most-liked' ], + default: 'hot' + } + } + }, autoBlacklist: { videos: { ofUsers: {