import { BroadcastMessageLevel } from '@shared/models/server'
import { VideosRedundancyStrategy } from '../../shared/models'
import { NSFWPolicyType } from '../../shared/models/videos/nsfw-policy.type'
import { BroadcastMessageLevel } from '@shared/models/server'
import { VideosRedundancyStrategy } from '../../shared/models'
import { NSFWPolicyType } from '../../shared/models/videos/nsfw-policy.type'
import { buildPath, parseBytes, parseDurationToMs, root } from '../helpers/core-utils'
// Use a variable to reload the configuration if we need
import { buildPath, parseBytes, parseDurationToMs, root } from '../helpers/core-utils'
// Use a variable to reload the configuration if we need
ACTOR_IMAGES: buildPath(config.get<string>('storage.avatars')),
LOG_DIR: buildPath(config.get<string>('storage.logs')),
VIDEOS_DIR: buildPath(config.get<string>('storage.videos')),
ACTOR_IMAGES: buildPath(config.get<string>('storage.avatars')),
LOG_DIR: buildPath(config.get<string>('storage.logs')),
VIDEOS_DIR: buildPath(config.get<string>('storage.videos')),
LEVEL: config.get<string>('log.level'),
ROTATION: {
ENABLED: config.get<boolean>('log.rotation.enabled'),
LEVEL: config.get<string>('log.level'),
ROTATION: {
ENABLED: config.get<boolean>('log.rotation.enabled'),
- MAX_FILE_SIZE: bytes.parse(config.get<string>('log.rotation.maxFileSize')),
- MAX_FILES: config.get<number>('log.rotation.maxFiles')
+ MAX_FILE_SIZE: bytes.parse(config.get<string>('log.rotation.max_file_size')),
+ MAX_FILES: config.get<number>('log.rotation.max_files')
LOG_PING_REQUESTS: config.get<boolean>('log.log_ping_requests'),
PRETTIFY_SQL: config.get<boolean>('log.prettify_sql')
},
LOG_PING_REQUESTS: config.get<boolean>('log.log_ping_requests'),
PRETTIFY_SQL: config.get<boolean>('log.prettify_sql')
},
get VIDEO_QUOTA () { return parseBytes(config.get<number>('user.video_quota')) },
get VIDEO_QUOTA_DAILY () { return parseBytes(config.get<number>('user.video_quota_daily')) }
},
get VIDEO_QUOTA () { return parseBytes(config.get<number>('user.video_quota')) },
get VIDEO_QUOTA_DAILY () { return parseBytes(config.get<number>('user.video_quota_daily')) }
},
TRANSCODING: {
get ENABLED () { return config.get<boolean>('transcoding.enabled') },
get ALLOW_ADDITIONAL_EXTENSIONS () { return config.get<boolean>('transcoding.allow_additional_extensions') },
TRANSCODING: {
get ENABLED () { return config.get<boolean>('transcoding.enabled') },
get ALLOW_ADDITIONAL_EXTENSIONS () { return config.get<boolean>('transcoding.allow_additional_extensions') },
- get FORCE_IPV4 () { return config.get<boolean>('import.videos.http.force_ipv4') },
- PROXY: {
- get ENABLED () { return config.get<boolean>('import.videos.http.proxy.enabled') },
- get URL () { return config.get<string>('import.videos.http.proxy.url') }
- }
+
+ YOUTUBE_DL_RELEASE: {
+ get URL () { return config.get<string>('import.videos.http.youtube_dl_release.url') },
+ get NAME () { return config.get<string>('import.videos.http.youtube_dl_release.name') }
+ },
+
+ get FORCE_IPV4 () { return config.get<boolean>('import.videos.http.force_ipv4') }