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.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 8dbc1b060..65f89ff7f 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -449,14 +449,21 @@ const FEEDS = {
449// Special constants for a test instance 449// Special constants for a test instance
450if (isTestInstance() === true) { 450if (isTestInstance() === true) {
451 ACTOR_FOLLOW_SCORE.BASE = 20 451 ACTOR_FOLLOW_SCORE.BASE = 20
452
452 REMOTE_SCHEME.HTTP = 'http' 453 REMOTE_SCHEME.HTTP = 'http'
453 REMOTE_SCHEME.WS = 'ws' 454 REMOTE_SCHEME.WS = 'ws'
455
454 STATIC_MAX_AGE = '0' 456 STATIC_MAX_AGE = '0'
457
455 ACTIVITY_PUB.COLLECTION_ITEMS_PER_PAGE = 2 458 ACTIVITY_PUB.COLLECTION_ITEMS_PER_PAGE = 2
456 ACTIVITY_PUB.ACTOR_REFRESH_INTERVAL = 10 * 1000 // 10 seconds 459 ACTIVITY_PUB.ACTOR_REFRESH_INTERVAL = 10 * 1000 // 10 seconds
460
457 CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max = 100 * 1024 // 100KB 461 CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max = 100 * 1024 // 100KB
462
458 SCHEDULER_INTERVAL = 10000 463 SCHEDULER_INTERVAL = 10000
459 VIDEO_VIEW_LIFETIME = 1000 // 1 second 464 VIDEO_VIEW_LIFETIME = 1000 // 1 second
465
466 JOB_ATTEMPTS['email'] = 1
460} 467}
461 468
462updateWebserverConfig() 469updateWebserverConfig()