X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=server%2Finitializers%2Fconstants.ts;h=75ccbc4588c4f885a7115eb8c5d266dd7aa6b0d2;hb=fba911e2c89708a166636e3a93fcd8fcbc3de7e1;hp=cd2cc33d312703fd086eef6ae9218b6690b06d82;hpb=f27b7a750f1876632e84d594608d3d64ce974efc;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index cd2cc33d3..75ccbc458 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -58,7 +58,7 @@ const WEBSERVER = { // Sortable columns per schema const SORTABLE_COLUMNS = { - USERS: [ 'id', 'username', 'videoQuotaUsed', 'createdAt', 'lastLoginDate', 'role' ], + ADMIN_USERS: [ 'id', 'username', 'videoQuotaUsed', 'createdAt', 'lastLoginDate', 'role' ], USER_SUBSCRIPTIONS: [ 'id', 'createdAt' ], ACCOUNTS: [ 'createdAt' ], JOBS: [ 'createdAt' ], @@ -186,7 +186,7 @@ const JOB_TTL: { [id in JobType]: number } = { 'video-file-import': 1000 * 3600, // 1 hour 'video-transcoding': 1000 * 3600 * 48, // 2 days, transcoding could be long 'video-studio-edition': 1000 * 3600 * 10, // 10 hours - 'video-import': 1000 * 3600 * 2, // 2 hours + 'video-import': CONFIG.IMPORT.VIDEOS.TIMEOUT, 'email': 60000 * 10, // 10 minutes 'actor-keys': 60000 * 20, // 20 minutes 'videos-views-stats': undefined, // Unlimited @@ -213,7 +213,7 @@ const CRAWL_REQUEST_CONCURRENCY = 1 // How many requests in parallel to fetch re const AP_CLEANER = { CONCURRENCY: 10, // How many requests in parallel we do in activitypub-cleaner job - UNAVAILABLE_TRESHOLD: 3, // How many attemps we do before removing an unavailable remote resource + UNAVAILABLE_TRESHOLD: 3, // How many attempts we do before removing an unavailable remote resource PERIOD: parseDurationToMs('1 week') // /!\ Has to be sync with REPEAT_JOBS } @@ -769,12 +769,6 @@ const CUSTOM_HTML_TAG_COMMENTS = { SERVER_CONFIG: '' } -// --------------------------------------------------------------------------- - -const FEEDS = { - COUNT: 20 -} - const MAX_LOGS_OUTPUT_CHARACTERS = 10 * 1000 * 1000 const LOG_FILENAME = 'peertube.log' const AUDIT_LOG_FILENAME = 'peertube-audit.log' @@ -942,7 +936,6 @@ export { ROUTE_CACHE_LIFETIME, SORTABLE_COLUMNS, HLS_STREAMING_PLAYLIST_DIRECTORY, - FEEDS, JOB_TTL, DEFAULT_THEME_NAME, NSFW_POLICY_TYPES,