diff options
author | Chocobozzz <me@florianbigard.com> | 2022-05-24 14:55:07 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-05-24 14:55:07 +0200 |
commit | 3eba7ab8154027621989cdd4814bc749d79bf0c9 (patch) | |
tree | f3f0b6887c00660dc3f7da79ff2fe2379d170aaf /server/initializers/config.ts | |
parent | 3cb60ca19eba97738342a10e15d5e5a916e2e690 (diff) | |
download | PeerTube-3eba7ab8154027621989cdd4814bc749d79bf0c9.tar.gz PeerTube-3eba7ab8154027621989cdd4814bc749d79bf0c9.tar.zst PeerTube-3eba7ab8154027621989cdd4814bc749d79bf0c9.zip |
Add ability to set a custom video import timeout
Diffstat (limited to 'server/initializers/config.ts')
-rw-r--r-- | server/initializers/config.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts index 59a65d6a5..2f59e3e3e 100644 --- a/server/initializers/config.ts +++ b/server/initializers/config.ts | |||
@@ -349,6 +349,7 @@ const CONFIG = { | |||
349 | IMPORT: { | 349 | IMPORT: { |
350 | VIDEOS: { | 350 | VIDEOS: { |
351 | get CONCURRENCY () { return config.get<number>('import.videos.concurrency') }, | 351 | get CONCURRENCY () { return config.get<number>('import.videos.concurrency') }, |
352 | get TIMEOUT () { return parseDurationToMs(config.get<string>('import.videos.timeout')) }, | ||
352 | 353 | ||
353 | HTTP: { | 354 | HTTP: { |
354 | get ENABLED () { return config.get<boolean>('import.videos.http.enabled') }, | 355 | get ENABLED () { return config.get<boolean>('import.videos.http.enabled') }, |