aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index 2531080a3..7aaf1e553 100644
--- a/server.ts
+++ b/server.ts
@@ -116,6 +116,7 @@ import { YoutubeDlUpdateScheduler } from './server/lib/schedulers/youtube-dl-upd
116import { VideosRedundancyScheduler } from './server/lib/schedulers/videos-redundancy-scheduler' 116import { VideosRedundancyScheduler } from './server/lib/schedulers/videos-redundancy-scheduler'
117import { RemoveOldHistoryScheduler } from './server/lib/schedulers/remove-old-history-scheduler' 117import { RemoveOldHistoryScheduler } from './server/lib/schedulers/remove-old-history-scheduler'
118import { AutoFollowIndexInstances } from './server/lib/schedulers/auto-follow-index-instances' 118import { AutoFollowIndexInstances } from './server/lib/schedulers/auto-follow-index-instances'
119import { RemoveDanglingResumableUploadsScheduler } from './server/lib/schedulers/remove-dangling-resumable-uploads-scheduler'
119import { isHTTPSignatureDigestValid } from './server/helpers/peertube-crypto' 120import { isHTTPSignatureDigestValid } from './server/helpers/peertube-crypto'
120import { PeerTubeSocket } from './server/lib/peertube-socket' 121import { PeerTubeSocket } from './server/lib/peertube-socket'
121import { updateStreamingPlaylistsInfohashesIfNeeded } from './server/lib/hls' 122import { updateStreamingPlaylistsInfohashesIfNeeded } from './server/lib/hls'
@@ -126,6 +127,7 @@ import { PluginManager } from './server/lib/plugins/plugin-manager'
126import { LiveManager } from './server/lib/live-manager' 127import { LiveManager } from './server/lib/live-manager'
127import { HttpStatusCode } from './shared/core-utils/miscs/http-error-codes' 128import { HttpStatusCode } from './shared/core-utils/miscs/http-error-codes'
128import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache' 129import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache'
130import { ServerConfigManager } from '@server/lib/server-config-manager'
129 131
130// ----------- Command line ----------- 132// ----------- Command line -----------
131 133
@@ -261,7 +263,8 @@ async function startApplication () {
261 263
262 await Promise.all([ 264 await Promise.all([
263 Emailer.Instance.checkConnection(), 265 Emailer.Instance.checkConnection(),
264 JobQueue.Instance.init() 266 JobQueue.Instance.init(),
267 ServerConfigManager.Instance.init()
265 ]) 268 ])
266 269
267 // Caches initializations 270 // Caches initializations
@@ -280,6 +283,7 @@ async function startApplication () {
280 PluginsCheckScheduler.Instance.enable() 283 PluginsCheckScheduler.Instance.enable()
281 PeerTubeVersionCheckScheduler.Instance.enable() 284 PeerTubeVersionCheckScheduler.Instance.enable()
282 AutoFollowIndexInstances.Instance.enable() 285 AutoFollowIndexInstances.Instance.enable()
286 RemoveDanglingResumableUploadsScheduler.Instance.enable()
283 287
284 // Redis initialization 288 // Redis initialization
285 Redis.Instance.init() 289 Redis.Instance.init()