diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-22 11:51:39 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-27 09:41:54 +0200 |
commit | f6eebcb336c067e160a62020a5140d8d992ba384 (patch) | |
tree | 48fbf9c292243c9cc13beb3749eceaf61fe2baef /server/initializers/constants.ts | |
parent | 22a16e36f6526887ed8f5e5d3c9f9e5da0b4a8cd (diff) | |
download | PeerTube-f6eebcb336c067e160a62020a5140d8d992ba384.tar.gz PeerTube-f6eebcb336c067e160a62020a5140d8d992ba384.tar.zst PeerTube-f6eebcb336c067e160a62020a5140d8d992ba384.zip |
Add ability to search a video with an URL
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 7e865fe3b..99b10a7fc 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -112,6 +112,7 @@ const JOB_TTL: { [ id in JobType ]: number } = { | |||
112 | 'email': 60000 * 10 // 10 minutes | 112 | 'email': 60000 * 10 // 10 minutes |
113 | } | 113 | } |
114 | const BROADCAST_CONCURRENCY = 10 // How many requests in parallel we do in activitypub-http-broadcast job | 114 | const BROADCAST_CONCURRENCY = 10 // How many requests in parallel we do in activitypub-http-broadcast job |
115 | const CRAWL_REQUEST_CONCURRENCY = 5 // How many requests in parallel to fetch remote data (likes, shares...) | ||
115 | const JOB_REQUEST_TIMEOUT = 3000 // 3 seconds | 116 | const JOB_REQUEST_TIMEOUT = 3000 // 3 seconds |
116 | const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days | 117 | const JOB_COMPLETED_LIFETIME = 60000 * 60 * 24 * 2 // 2 days |
117 | 118 | ||
@@ -643,6 +644,7 @@ export { | |||
643 | STATIC_DOWNLOAD_PATHS, | 644 | STATIC_DOWNLOAD_PATHS, |
644 | RATES_LIMIT, | 645 | RATES_LIMIT, |
645 | VIDEO_EXT_MIMETYPE, | 646 | VIDEO_EXT_MIMETYPE, |
647 | CRAWL_REQUEST_CONCURRENCY, | ||
646 | JOB_COMPLETED_LIFETIME, | 648 | JOB_COMPLETED_LIFETIME, |
647 | VIDEO_IMPORT_STATES, | 649 | VIDEO_IMPORT_STATES, |
648 | VIDEO_VIEW_LIFETIME, | 650 | VIDEO_VIEW_LIFETIME, |