+import { randomInt } from '../../shared/core-utils/miscs/miscs'
import { CronRepeatOptions, EveryRepeatOptions } from 'bull'
-import { randomBytes, randomInt } from 'crypto'
+import { randomBytes } from 'crypto'
import { invert } from 'lodash'
import { join } from 'path'
import {
JOBS: [ 'createdAt' ],
VIDEO_CHANNELS: [ 'id', 'name', 'updatedAt', 'createdAt' ],
VIDEO_IMPORTS: [ 'createdAt' ],
+
VIDEO_COMMENT_THREADS: [ 'createdAt', 'totalReplies' ],
+ VIDEO_COMMENTS: [ 'createdAt' ],
+
VIDEO_RATES: [ 'createdAt' ],
BLACKLISTS: [ 'id', 'name', 'duration', 'views', 'likes', 'dislikes', 'uuid', 'createdAt' ],
FOLLOWERS: [ 'createdAt', 'state', 'score' ],
HEADER_NAME: 'signature',
ALGORITHM: 'rsa-sha256',
HEADERS_TO_SIGN: [ '(request-target)', 'host', 'date', 'digest' ],
+ REQUIRED_HEADERS: {
+ ALL: [ '(request-target)', 'host', 'date' ],
+ POST: [ '(request-target)', 'host', 'date', 'digest' ]
+ },
CLOCK_SKEW_SECONDS: 1800
}
CLEANUP_DELAY: 1000 * 60 * 5, // 5 minutes
SEGMENT_TIME_SECONDS: 4, // 4 seconds
SEGMENTS_LIST_SIZE: 15, // 15 maximum segments in live playlist
+ EDGE_LIVE_DELAY_SEGMENTS_NOTIFICATION: 3,
RTMP: {
CHUNK_SIZE: 60000,
GOP_CACHE: true,
VIDEO_LIVE.CLEANUP_DELAY = 5000
VIDEO_LIVE.SEGMENT_TIME_SECONDS = 2
+ VIDEO_LIVE.EDGE_LIVE_DELAY_SEGMENTS_NOTIFICATION = 1
}
updateWebserverUrls()