aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server.ts b/server.ts
index a52c47083..99077a173 100644
--- a/server.ts
+++ b/server.ts
@@ -56,6 +56,7 @@ import { installApplication } from './server/initializers'
56import { activitypubHttpJobScheduler, transcodingJobScheduler } from './server/lib/jobs' 56import { activitypubHttpJobScheduler, transcodingJobScheduler } from './server/lib/jobs'
57import { VideosPreviewCache } from './server/lib/cache' 57import { VideosPreviewCache } from './server/lib/cache'
58import { apiRouter, clientsRouter, staticRouter, servicesRouter, webfingerRouter, activityPubRouter } from './server/controllers' 58import { apiRouter, clientsRouter, staticRouter, servicesRouter, webfingerRouter, activityPubRouter } from './server/controllers'
59import { BadActorFollowScheduler } from './server/lib/schedulers/bad-actor-follow-scheduler'
59 60
60// ----------- Command line ----------- 61// ----------- Command line -----------
61 62
@@ -168,6 +169,8 @@ function onDatabaseInitDone () {
168 // ----------- Make the server listening ----------- 169 // ----------- Make the server listening -----------
169 server.listen(port, () => { 170 server.listen(port, () => {
170 VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE) 171 VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE)
172 BadActorFollowScheduler.Instance.enable()
173
171 activitypubHttpJobScheduler.activate() 174 activitypubHttpJobScheduler.activate()
172 transcodingJobScheduler.activate() 175 transcodingJobScheduler.activate()
173 176