diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-11 15:38:53 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-11 15:38:53 +0200 |
commit | 8f0bc73d7d5f4c88cbc5588a0ece12b3855c8f98 (patch) | |
tree | e04f1da52f9377cf6ce820425c0de6e57ab57fc6 /server.ts | |
parent | 76062d9f96e06a23a2efc8a727ea9c5394d21466 (diff) | |
download | PeerTube-8f0bc73d7d5f4c88cbc5588a0ece12b3855c8f98.tar.gz PeerTube-8f0bc73d7d5f4c88cbc5588a0ece12b3855c8f98.tar.zst PeerTube-8f0bc73d7d5f4c88cbc5588a0ece12b3855c8f98.zip |
Add ability to limit videos history size
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -105,6 +105,7 @@ import { RemoveOldJobsScheduler } from './server/lib/schedulers/remove-old-jobs- | |||
105 | import { UpdateVideosScheduler } from './server/lib/schedulers/update-videos-scheduler' | 105 | import { UpdateVideosScheduler } from './server/lib/schedulers/update-videos-scheduler' |
106 | import { YoutubeDlUpdateScheduler } from './server/lib/schedulers/youtube-dl-update-scheduler' | 106 | import { YoutubeDlUpdateScheduler } from './server/lib/schedulers/youtube-dl-update-scheduler' |
107 | import { VideosRedundancyScheduler } from './server/lib/schedulers/videos-redundancy-scheduler' | 107 | import { VideosRedundancyScheduler } from './server/lib/schedulers/videos-redundancy-scheduler' |
108 | import { RemoveOldHistoryScheduler } from './server/lib/schedulers/remove-old-history-scheduler' | ||
108 | import { isHTTPSignatureDigestValid } from './server/helpers/peertube-crypto' | 109 | import { isHTTPSignatureDigestValid } from './server/helpers/peertube-crypto' |
109 | import { PeerTubeSocket } from './server/lib/peertube-socket' | 110 | import { PeerTubeSocket } from './server/lib/peertube-socket' |
110 | import { updateStreamingPlaylistsInfohashesIfNeeded } from './server/lib/hls' | 111 | import { updateStreamingPlaylistsInfohashesIfNeeded } from './server/lib/hls' |
@@ -240,6 +241,7 @@ async function startApplication () { | |||
240 | UpdateVideosScheduler.Instance.enable() | 241 | UpdateVideosScheduler.Instance.enable() |
241 | YoutubeDlUpdateScheduler.Instance.enable() | 242 | YoutubeDlUpdateScheduler.Instance.enable() |
242 | VideosRedundancyScheduler.Instance.enable() | 243 | VideosRedundancyScheduler.Instance.enable() |
244 | RemoveOldHistoryScheduler.Instance.enable() | ||
243 | 245 | ||
244 | // Redis initialization | 246 | // Redis initialization |
245 | Redis.Instance.init() | 247 | Redis.Instance.init() |