X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=server.ts;h=99077a1738c498c2f7076ccf87c23aaa94272b26;hb=fd206f0b2d7e5c8e00e2817266d90ec54f79e1da;hp=05fc39acbb5a808cfeccf5e4384ce440ee912884;hpb=4635f59d7c3fea4b97029f10886c62fdf38b2084;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server.ts b/server.ts index 05fc39acb..99077a173 100644 --- a/server.ts +++ b/server.ts @@ -1,3 +1,6 @@ +// FIXME: https://github.com/nodejs/node/pull/16853 +require('tls').DEFAULT_ECDH_CURVE = 'auto' + import { isTestInstance } from './server/helpers/core-utils' if (isTestInstance()) { @@ -53,6 +56,7 @@ import { installApplication } from './server/initializers' import { activitypubHttpJobScheduler, transcodingJobScheduler } from './server/lib/jobs' import { VideosPreviewCache } from './server/lib/cache' import { apiRouter, clientsRouter, staticRouter, servicesRouter, webfingerRouter, activityPubRouter } from './server/controllers' +import { BadActorFollowScheduler } from './server/lib/schedulers/bad-actor-follow-scheduler' // ----------- Command line ----------- @@ -165,6 +169,8 @@ function onDatabaseInitDone () { // ----------- Make the server listening ----------- server.listen(port, () => { VideosPreviewCache.Instance.init(CONFIG.CACHE.PREVIEWS.SIZE) + BadActorFollowScheduler.Instance.enable() + activitypubHttpJobScheduler.activate() transcodingJobScheduler.activate()