diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-08 10:51:10 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-02-08 15:38:45 +0100 |
commit | 9129b7694d577322327ee79e9b9aa64deee92765 (patch) | |
tree | eb23b7a952048c3725f29109d38c36368976dec0 /server/initializers/config.ts | |
parent | 81b46cbc3417c46263c210c61b51a84a457abaaa (diff) | |
download | PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.tar.gz PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.tar.zst PeerTube-9129b7694d577322327ee79e9b9aa64deee92765.zip |
Allow to specify transcoding and import jobs concurrency
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r-- | server/initializers/config.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts index 3b44d82ed..930fd784e 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts | |||
@@ -188,6 +188,7 @@ const CONFIG = { | |||
188 | get ALLOW_ADDITIONAL_EXTENSIONS () { return config.get<boolean>('transcoding.allow_additional_extensions') }, | 188 | get ALLOW_ADDITIONAL_EXTENSIONS () { return config.get<boolean>('transcoding.allow_additional_extensions') }, |
189 | get ALLOW_AUDIO_FILES () { return config.get<boolean>('transcoding.allow_audio_files') }, | 189 | get ALLOW_AUDIO_FILES () { return config.get<boolean>('transcoding.allow_audio_files') }, |
190 | get THREADS () { return config.get<number>('transcoding.threads') }, | 190 | get THREADS () { return config.get<number>('transcoding.threads') }, |
191 | get CONCURRENCY () { return config.get<number>('transcoding.concurrency') }, | ||
191 | get PROFILE () { return config.get<string>('transcoding.profile') }, | 192 | get PROFILE () { return config.get<string>('transcoding.profile') }, |
192 | RESOLUTIONS: { | 193 | RESOLUTIONS: { |
193 | get '0p' () { return config.get<boolean>('transcoding.resolutions.0p') }, | 194 | get '0p' () { return config.get<boolean>('transcoding.resolutions.0p') }, |
@@ -237,6 +238,8 @@ const CONFIG = { | |||
237 | }, | 238 | }, |
238 | IMPORT: { | 239 | IMPORT: { |
239 | VIDEOS: { | 240 | VIDEOS: { |
241 | get CONCURRENCY () { return config.get<number>('import.videos.concurrency') }, | ||
242 | |||
240 | HTTP: { | 243 | HTTP: { |
241 | get ENABLED () { return config.get<boolean>('import.videos.http.enabled') }, | 244 | get ENABLED () { return config.get<boolean>('import.videos.http.enabled') }, |
242 | get FORCE_IPV4 () { return config.get<boolean>('import.videos.http.force_ipv4') }, | 245 | get FORCE_IPV4 () { return config.get<boolean>('import.videos.http.force_ipv4') }, |