diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -56,6 +56,7 @@ import { installApplication } from './server/initializers' | |||
56 | import { activitypubHttpJobScheduler, transcodingJobScheduler } from './server/lib/jobs' | 56 | import { activitypubHttpJobScheduler, transcodingJobScheduler } from './server/lib/jobs' |
57 | import { VideosPreviewCache } from './server/lib/cache' | 57 | import { VideosPreviewCache } from './server/lib/cache' |
58 | import { apiRouter, clientsRouter, staticRouter, servicesRouter, webfingerRouter, activityPubRouter } from './server/controllers' | 58 | import { apiRouter, clientsRouter, staticRouter, servicesRouter, webfingerRouter, activityPubRouter } from './server/controllers' |
59 | import { 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 | ||