diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -116,6 +116,7 @@ import { YoutubeDlUpdateScheduler } from './server/lib/schedulers/youtube-dl-upd | |||
116 | import { VideosRedundancyScheduler } from './server/lib/schedulers/videos-redundancy-scheduler' | 116 | import { VideosRedundancyScheduler } from './server/lib/schedulers/videos-redundancy-scheduler' |
117 | import { RemoveOldHistoryScheduler } from './server/lib/schedulers/remove-old-history-scheduler' | 117 | import { RemoveOldHistoryScheduler } from './server/lib/schedulers/remove-old-history-scheduler' |
118 | import { AutoFollowIndexInstances } from './server/lib/schedulers/auto-follow-index-instances' | 118 | import { AutoFollowIndexInstances } from './server/lib/schedulers/auto-follow-index-instances' |
119 | import { RemoveDanglingResumableUploadsScheduler } from './server/lib/schedulers/remove-dangling-resumable-uploads-scheduler' | ||
119 | import { isHTTPSignatureDigestValid } from './server/helpers/peertube-crypto' | 120 | import { isHTTPSignatureDigestValid } from './server/helpers/peertube-crypto' |
120 | import { PeerTubeSocket } from './server/lib/peertube-socket' | 121 | import { PeerTubeSocket } from './server/lib/peertube-socket' |
121 | import { updateStreamingPlaylistsInfohashesIfNeeded } from './server/lib/hls' | 122 | import { updateStreamingPlaylistsInfohashesIfNeeded } from './server/lib/hls' |
@@ -126,6 +127,7 @@ import { PluginManager } from './server/lib/plugins/plugin-manager' | |||
126 | import { LiveManager } from './server/lib/live-manager' | 127 | import { LiveManager } from './server/lib/live-manager' |
127 | import { HttpStatusCode } from './shared/core-utils/miscs/http-error-codes' | 128 | import { HttpStatusCode } from './shared/core-utils/miscs/http-error-codes' |
128 | import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache' | 129 | import { VideosTorrentCache } from '@server/lib/files-cache/videos-torrent-cache' |
130 | import { 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() |