X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Finitializers%2Fconstants.ts;h=020ed68daca5cbc9a7c6dc6a9e40c8e91da901a9;hb=cb0eda5602a21d1626a7face32de6153ed07b5f9;hp=54380f7bfd76be7eb01072fa2172c16371eb4575;hpb=f008e9f3f34ed1724afd5e071c39ed931741acbc;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 54380f7bf..020ed68da 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -6,6 +6,8 @@ import { randomInt, root } from '@shared/core-utils' import { AbuseState, JobType, + RunnerJobState, + UserRegistrationState, VideoChannelSyncState, VideoImportState, VideoPrivacy, @@ -25,7 +27,7 @@ import { CONFIG, registerConfigChangedHandler } from './config' // --------------------------------------------------------------------------- -const LAST_MIGRATION_VERSION = 755 +const LAST_MIGRATION_VERSION = 775 // --------------------------------------------------------------------------- @@ -53,8 +55,12 @@ const WEBSERVER = { WS: '', HOSTNAME: '', PORT: 0, + RTMP_URL: '', - RTMPS_URL: '' + RTMPS_URL: '', + + RTMP_BASE_LIVE_URL: '', + RTMPS_BASE_LIVE_URL: '' } // Sortable columns per schema @@ -78,6 +84,12 @@ const SORTABLE_COLUMNS = { ACCOUNT_FOLLOWERS: [ 'createdAt' ], CHANNEL_FOLLOWERS: [ 'createdAt' ], + USER_REGISTRATIONS: [ 'createdAt', 'state' ], + + RUNNERS: [ 'createdAt' ], + RUNNER_REGISTRATION_TOKENS: [ 'createdAt' ], + RUNNER_JOBS: [ 'updatedAt', 'createdAt', 'priority', 'state', 'progress' ], + VIDEOS: [ 'name', 'duration', 'createdAt', 'publishedAt', 'originallyPublishedAt', 'views', 'likes', 'trending', 'hot', 'best' ], // Don't forget to update peertube-search-index with the same values @@ -136,6 +148,8 @@ const REMOTE_SCHEME = { WS: 'wss' } +// --------------------------------------------------------------------------- + const JOB_ATTEMPTS: { [id in JobType]: number } = { 'activitypub-http-broadcast': 1, 'activitypub-http-broadcast-parallel': 1, @@ -157,6 +171,7 @@ const JOB_ATTEMPTS: { [id in JobType]: number } = { 'video-channel-import': 1, 'after-video-channel-import': 1, 'move-to-object-storage': 3, + 'transcoding-job-builder': 1, 'notify': 1, 'federate-video': 1 } @@ -180,6 +195,7 @@ const JOB_CONCURRENCY: { [id in Exclude