X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Finitializers%2Fconstants.ts;h=facd3b721fc5cc96359d7efa42ff9e2567ddf042;hb=221d876fa7a9e92a5a6721b68c31d015b325393f;hp=1802257df1ee6af1fad19d472b477ff25d47ac2c;hpb=4024c44f9027a32809931de0692d40d001df721c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 1802257df..facd3b721 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -2,7 +2,7 @@ import { CronRepeatOptions, EveryRepeatOptions } from 'bull' import { randomBytes } from 'crypto' import { invert } from 'lodash' import { join } from 'path' -import { randomInt } from '../../shared/core-utils/miscs/miscs' +import { randomInt } from '../../shared/core-utils/common/miscs' import { AbuseState, JobType, @@ -24,7 +24,7 @@ import { CONFIG, registerConfigChangedHandler } from './config' // --------------------------------------------------------------------------- -const LAST_MIGRATION_VERSION = 635 +const LAST_MIGRATION_VERSION = 670 // --------------------------------------------------------------------------- @@ -77,6 +77,7 @@ const SORTABLE_COLUMNS = { // Don't forget to update peertube-search-index with the same values VIDEOS_SEARCH: [ 'name', 'duration', 'createdAt', 'publishedAt', 'originallyPublishedAt', 'views', 'likes', 'match' ], VIDEO_CHANNELS_SEARCH: [ 'match', 'displayName', 'createdAt' ], + VIDEO_PLAYLISTS_SEARCH: [ 'match', 'displayName', 'createdAt' ], ABUSES: [ 'id', 'createdAt', 'state' ], @@ -146,13 +147,14 @@ const JOB_ATTEMPTS: { [id in JobType]: number } = { 'videos-views': 1, 'activitypub-refresher': 1, 'video-redundancy': 1, - 'video-live-ending': 1 + 'video-live-ending': 1, + 'move-to-object-storage': 3 } // Excluded keys are jobs that can be configured by admins const JOB_CONCURRENCY: { [id in Exclude]: number } = { 'activitypub-http-broadcast': 1, 'activitypub-http-unicast': 5, - 'activitypub-http-fetcher': 1, + 'activitypub-http-fetcher': 3, 'activitypub-cleaner': 1, 'activitypub-follow': 1, 'video-file-import': 1, @@ -161,7 +163,8 @@ const JOB_CONCURRENCY: { [id in Exclude', DESCRIPTION: '', CUSTOM_CSS: '', - META_TAGS: '' + META_TAGS: '', + SERVER_CONFIG: '' } // --------------------------------------------------------------------------- @@ -822,6 +829,7 @@ export { PEERTUBE_VERSION, LAZY_STATIC_PATHS, SEARCH_INDEX, + RESUMABLE_UPLOAD_DIRECTORY, HLS_REDUNDANCY_DIRECTORY, P2P_MEDIA_LOADER_PEER_VERSION, ACTOR_IMAGES_SIZE, @@ -1047,6 +1055,8 @@ function buildLanguages () { kab: true, // Kabyle + lat: true, // Latin + epo: true, // Esperanto tlh: true, // Klingon jbo: true, // Lojban