X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Finitializers%2Fconstants.ts;h=9beb9b7c242741388d09085c12babff0f0646265;hb=f37dc0dd14d9ce0b59c454c2c1b935fcbe9727e9;hp=cd709cd3f29069625d9b19325d8ef81c658792d7;hpb=1297eb5db651a230474670c5da1517862fb9cc3e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index cd709cd3f..9beb9b7c2 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -43,7 +43,8 @@ const SORTABLE_COLUMNS = { FOLLOWERS: [ 'createdAt' ], FOLLOWING: [ 'createdAt' ], - VIDEOS_SEARCH: [ 'match', 'name', 'duration', 'createdAt', 'publishedAt', 'views', 'likes' ] + VIDEOS_SEARCH: [ 'match', 'name', 'duration', 'createdAt', 'publishedAt', 'views', 'likes' ], + VIDEO_CHANNELS_SEARCH: [ 'match', 'displayName' ] } const OAUTH_LIFETIME = { @@ -112,7 +113,7 @@ const JOB_TTL: { [ id in JobType ]: number } = { 'email': 60000 * 10 // 10 minutes } const BROADCAST_CONCURRENCY = 10 // How many requests in parallel we do in activitypub-http-broadcast job -const CRAWL_REQUEST_CONCURRENCY = 5 // How many requests in parallel to fetch remote data (likes, shares...) +const CRAWL_REQUEST_CONCURRENCY = 1 // How many requests in parallel to fetch remote data (likes, shares...) const JOB_REQUEST_TIMEOUT = 3000 // 3 seconds const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days