X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Finitializers%2Fconfig.ts;h=48e7f7397be50e4d21f7e73a939b96e5b26bde9c;hb=4363ce0e3edefcf5d8f913eabea365c424b0a956;hp=7322b89e22cc6626aff2fc0d0595a2035a900e40;hpb=1896bca09e088b0da9d5e845407ecebae330618c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/initializers/config.ts b/server/initializers/config.ts index 7322b89e2..48e7f7397 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts @@ -159,7 +159,14 @@ const CONFIG = { }, FEDERATION: { VIDEOS: { - FEDERATE_UNLISTED: config.get('federation.videos.federate_unlisted') + FEDERATE_UNLISTED: config.get('federation.videos.federate_unlisted'), + CLEANUP_REMOTE_INTERACTIONS: config.get('federation.videos.cleanup_remote_interactions') + } + }, + PEERTUBE: { + CHECK_LATEST_VERSION: { + ENABLED: config.get('peertube.check_latest_version.enabled'), + URL: config.get('peertube.check_latest_version.url') } }, ADMIN: { @@ -188,6 +195,7 @@ const CONFIG = { get ALLOW_ADDITIONAL_EXTENSIONS () { return config.get('transcoding.allow_additional_extensions') }, get ALLOW_AUDIO_FILES () { return config.get('transcoding.allow_audio_files') }, get THREADS () { return config.get('transcoding.threads') }, + get CONCURRENCY () { return config.get('transcoding.concurrency') }, get PROFILE () { return config.get('transcoding.profile') }, RESOLUTIONS: { get '0p' () { return config.get('transcoding.resolutions.0p') }, @@ -237,6 +245,8 @@ const CONFIG = { }, IMPORT: { VIDEOS: { + get CONCURRENCY () { return config.get('import.videos.concurrency') }, + HTTP: { get ENABLED () { return config.get('import.videos.http.enabled') }, get FORCE_IPV4 () { return config.get('import.videos.http.force_ipv4') }, @@ -263,6 +273,9 @@ const CONFIG = { }, VIDEO_CAPTIONS: { get SIZE () { return config.get('cache.captions.size') } + }, + TORRENTS: { + get SIZE () { return config.get('cache.torrents.size') } } }, INSTANCE: { @@ -336,8 +349,8 @@ const CONFIG = { }, SEARCH: { REMOTE_URI: { - USERS: config.get('search.remote_uri.users'), - ANONYMOUS: config.get('search.remote_uri.anonymous') + get USERS () { return config.get('search.remote_uri.users') }, + get ANONYMOUS () { return config.get('search.remote_uri.anonymous') } }, SEARCH_INDEX: { get ENABLED () { return config.get('search.search_index.enabled') },