aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-11 09:35:50 +0100
committerChocobozzz <me@florianbigard.com>2018-01-11 09:35:50 +0100
commit60650c77c8a2a98e92d869b237ae4900f369a8fc (patch)
tree7304a7591b5b23b99d219c4d06c6bd5c4c58c1c2 /server.ts
parent7ae71355c40e9065f83d3fc77b6750d1929ac201 (diff)
downloadPeerTube-60650c77c8a2a98e92d869b237ae4900f369a8fc.tar.gz
PeerTube-60650c77c8a2a98e92d869b237ae4900f369a8fc.tar.zst
PeerTube-60650c77c8a2a98e92d869b237ae4900f369a8fc.zip
Add scores to follows and remove bad ones
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