aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r--server/initializers/constants.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 2d324d1eb..75ccbc458 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -139,6 +139,7 @@ const REMOTE_SCHEME = {
139 139
140const JOB_ATTEMPTS: { [id in JobType]: number } = { 140const JOB_ATTEMPTS: { [id in JobType]: number } = {
141 'activitypub-http-broadcast': 1, 141 'activitypub-http-broadcast': 1,
142 'activitypub-http-broadcast-parallel': 1,
142 'activitypub-http-unicast': 1, 143 'activitypub-http-unicast': 1,
143 'activitypub-http-fetcher': 2, 144 'activitypub-http-fetcher': 2,
144 'activitypub-follow': 5, 145 'activitypub-follow': 5,
@@ -159,6 +160,7 @@ const JOB_ATTEMPTS: { [id in JobType]: number } = {
159// Excluded keys are jobs that can be configured by admins 160// Excluded keys are jobs that can be configured by admins
160const JOB_CONCURRENCY: { [id in Exclude<JobType, 'video-transcoding' | 'video-import'>]: number } = { 161const JOB_CONCURRENCY: { [id in Exclude<JobType, 'video-transcoding' | 'video-import'>]: number } = {
161 'activitypub-http-broadcast': 1, 162 'activitypub-http-broadcast': 1,
163 'activitypub-http-broadcast-parallel': 30,
162 'activitypub-http-unicast': 10, 164 'activitypub-http-unicast': 10,
163 'activitypub-http-fetcher': 3, 165 'activitypub-http-fetcher': 3,
164 'activitypub-cleaner': 1, 166 'activitypub-cleaner': 1,
@@ -176,6 +178,7 @@ const JOB_CONCURRENCY: { [id in Exclude<JobType, 'video-transcoding' | 'video-im
176} 178}
177const JOB_TTL: { [id in JobType]: number } = { 179const JOB_TTL: { [id in JobType]: number } = {
178 'activitypub-http-broadcast': 60000 * 10, // 10 minutes 180 'activitypub-http-broadcast': 60000 * 10, // 10 minutes
181 'activitypub-http-broadcast-parallel': 60000 * 10, // 10 minutes
179 'activitypub-http-unicast': 60000 * 10, // 10 minutes 182 'activitypub-http-unicast': 60000 * 10, // 10 minutes
180 'activitypub-http-fetcher': 1000 * 3600 * 10, // 10 hours 183 'activitypub-http-fetcher': 1000 * 3600 * 10, // 10 hours
181 'activitypub-follow': 60000 * 10, // 10 minutes 184 'activitypub-follow': 60000 * 10, // 10 minutes
@@ -371,7 +374,7 @@ const VIEW_LIFETIME = {
371 VIEWER_STATS: 60000 * 60 // 1 hour 374 VIEWER_STATS: 60000 * 60 // 1 hour
372} 375}
373 376
374const MAX_LOCAL_VIEWER_WATCH_SECTIONS = 10 377const MAX_LOCAL_VIEWER_WATCH_SECTIONS = 100
375 378
376let CONTACT_FORM_LIFETIME = 60000 * 60 // 1 hour 379let CONTACT_FORM_LIFETIME = 60000 * 60 // 1 hour
377 380