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.ts10
1 files changed, 9 insertions, 1 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts
index 99b10a7fc..cd709cd3f 100644
--- a/server/initializers/constants.ts
+++ b/server/initializers/constants.ts
@@ -181,6 +181,12 @@ const CONFIG = {
181 LOG: { 181 LOG: {
182 LEVEL: config.get<string>('log.level') 182 LEVEL: config.get<string>('log.level')
183 }, 183 },
184 SEARCH: {
185 REMOTE_URI: {
186 USERS: config.get<boolean>('search.remote_uri.users'),
187 ANONYMOUS: config.get<boolean>('search.remote_uri.anonymous')
188 }
189 },
184 ADMIN: { 190 ADMIN: {
185 get EMAIL () { return config.get<string>('admin.email') } 191 get EMAIL () { return config.get<string>('admin.email') }
186 }, 192 },
@@ -462,7 +468,8 @@ const ACTIVITY_PUB = {
462 MAGNET: [ 'application/x-bittorrent;x-scheme-handler/magnet' ] 468 MAGNET: [ 'application/x-bittorrent;x-scheme-handler/magnet' ]
463 }, 469 },
464 MAX_RECURSION_COMMENTS: 100, 470 MAX_RECURSION_COMMENTS: 100,
465 ACTOR_REFRESH_INTERVAL: 3600 * 24 * 1000 // 1 day 471 ACTOR_REFRESH_INTERVAL: 3600 * 24 * 1000, // 1 day
472 VIDEO_REFRESH_INTERVAL: 3600 * 24 * 1000 // 1 day
466} 473}
467 474
468const ACTIVITY_PUB_ACTOR_TYPES: { [ id: string ]: ActivityPubActorType } = { 475const ACTIVITY_PUB_ACTOR_TYPES: { [ id: string ]: ActivityPubActorType } = {
@@ -574,6 +581,7 @@ if (isTestInstance() === true) {
574 581
575 ACTIVITY_PUB.COLLECTION_ITEMS_PER_PAGE = 2 582 ACTIVITY_PUB.COLLECTION_ITEMS_PER_PAGE = 2
576 ACTIVITY_PUB.ACTOR_REFRESH_INTERVAL = 10 * 1000 // 10 seconds 583 ACTIVITY_PUB.ACTOR_REFRESH_INTERVAL = 10 * 1000 // 10 seconds
584 ACTIVITY_PUB.VIDEO_REFRESH_INTERVAL = 10 * 1000 // 10 seconds
577 585
578 CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max = 100 * 1024 // 100KB 586 CONSTRAINTS_FIELDS.ACTORS.AVATAR.FILE_SIZE.max = 100 * 1024 // 100KB
579 587