aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
authorkontrollanten <6680299+kontrollanten@users.noreply.github.com>2022-03-16 10:57:36 +0100
committerGitHub <noreply@github.com>2022-03-16 10:57:36 +0100
commit60233e90d280eb865d396b30b63c0e88d13ca7db (patch)
treec30f4abf34d014d647354f9c942fc16f071c0ddb /server/initializers
parentff6a266e3f5cb740770a2a186bdfdd0cb871e174 (diff)
downloadPeerTube-60233e90d280eb865d396b30b63c0e88d13ca7db.tar.gz
PeerTube-60233e90d280eb865d396b30b63c0e88d13ca7db.tar.zst
PeerTube-60233e90d280eb865d396b30b63c0e88d13ca7db.zip
add client.videos.upload.maxChunkSize config (#4857)
* add client.videos.upload.maxChunkSize config * updates after review * remove maxChunkSize from custom-config
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/config.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/initializers/config.ts b/server/initializers/config.ts
index 6dcca9b67..3aadd9cbd 100644
--- a/server/initializers/config.ts
+++ b/server/initializers/config.ts
@@ -64,6 +64,9 @@ const CONFIG = {
64 MINIATURE: { 64 MINIATURE: {
65 get PREFER_AUTHOR_DISPLAY_NAME () { return config.get<boolean>('client.videos.miniature.prefer_author_display_name') }, 65 get PREFER_AUTHOR_DISPLAY_NAME () { return config.get<boolean>('client.videos.miniature.prefer_author_display_name') },
66 get DISPLAY_AUTHOR_AVATAR () { return config.get<boolean>('client.videos.miniature.display_author_avatar') } 66 get DISPLAY_AUTHOR_AVATAR () { return config.get<boolean>('client.videos.miniature.display_author_avatar') }
67 },
68 RESUMABLE_UPLOAD: {
69 get MAX_CHUNK_SIZE () { return parseBytes(config.get<number>('client.videos.resumable_upload.max_chunk_size') || 0) }
67 } 70 }
68 }, 71 },
69 MENU: { 72 MENU: {