diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,6 @@ | |||
1 | // FIXME: https://github.com/nodejs/node/pull/16853 | 1 | // FIXME: https://github.com/nodejs/node/pull/16853 |
2 | import { ScheduleVideoUpdateModel } from './server/models/video/schedule-video-update' | ||
3 | |||
2 | require('tls').DEFAULT_ECDH_CURVE = 'auto' | 4 | require('tls').DEFAULT_ECDH_CURVE = 'auto' |
3 | 5 | ||
4 | import { isTestInstance } from './server/helpers/core-utils' | 6 | import { isTestInstance } from './server/helpers/core-utils' |
@@ -28,7 +30,7 @@ import { checkMissedConfig, checkFFmpeg, checkConfig } from './server/initialize | |||
28 | 30 | ||
29 | // Do not use barrels because we don't want to load all modules here (we need to initialize database first) | 31 | // Do not use barrels because we don't want to load all modules here (we need to initialize database first) |
30 | import { logger } from './server/helpers/logger' | 32 | import { logger } from './server/helpers/logger' |
31 | import { ACCEPT_HEADERS, API_VERSION, CONFIG, STATIC_PATHS } from './server/initializers/constants' | 33 | import { API_VERSION, CONFIG, STATIC_PATHS } from './server/initializers/constants' |
32 | 34 | ||
33 | const missed = checkMissedConfig() | 35 | const missed = checkMissedConfig() |
34 | if (missed.length !== 0) { | 36 | if (missed.length !== 0) { |
@@ -80,6 +82,7 @@ import { | |||
80 | import { Redis } from './server/lib/redis' | 82 | import { Redis } from './server/lib/redis' |
81 | import { BadActorFollowScheduler } from './server/lib/schedulers/bad-actor-follow-scheduler' | 83 | import { BadActorFollowScheduler } from './server/lib/schedulers/bad-actor-follow-scheduler' |
82 | import { RemoveOldJobsScheduler } from './server/lib/schedulers/remove-old-jobs-scheduler' | 84 | import { RemoveOldJobsScheduler } from './server/lib/schedulers/remove-old-jobs-scheduler' |
85 | import { UpdateVideosScheduler } from './server/lib/schedulers/update-videos-scheduler' | ||
83 | 86 | ||
84 | // ----------- Command line ----------- | 87 | // ----------- Command line ----------- |
85 | 88 | ||
@@ -200,6 +203,7 @@ async function startApplication () { | |||
200 | // Enable Schedulers | 203 | // Enable Schedulers |
201 | BadActorFollowScheduler.Instance.enable() | 204 | BadActorFollowScheduler.Instance.enable() |
202 | RemoveOldJobsScheduler.Instance.enable() | 205 | RemoveOldJobsScheduler.Instance.enable() |
206 | UpdateVideosScheduler.Instance.enable() | ||
203 | 207 | ||
204 | // Redis initialization | 208 | // Redis initialization |
205 | Redis.Instance.init() | 209 | Redis.Instance.init() |