diff options
author | Chocobozzz <me@florianbigard.com> | 2021-05-27 16:12:41 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-05-27 16:12:41 +0200 |
commit | 8f608a4cb22ab232cfab20665050764b38bac9c7 (patch) | |
tree | 6a6785aae79bf5939ad7b7a50a1bd8031268d2b4 /server.ts | |
parent | 030ccfce59a8cb8f2fee6ea8dd363ba635c5c5c2 (diff) | |
parent | c215e627b575d2c4085ccb222f4ca8d0237b7552 (diff) | |
download | PeerTube-8f608a4cb22ab232cfab20665050764b38bac9c7.tar.gz PeerTube-8f608a4cb22ab232cfab20665050764b38bac9c7.tar.zst PeerTube-8f608a4cb22ab232cfab20665050764b38bac9c7.zip |
Merge branch 'develop' into shorter-URLs-channels-accounts
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() |