mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-09-03 20:53:09 -05:00
add client.videos.upload.maxChunkSize config (#4857)
* add client.videos.upload.maxChunkSize config * updates after review * remove maxChunkSize from custom-config
This commit is contained in:
@@ -64,6 +64,9 @@ const CONFIG = {
|
||||
MINIATURE: {
|
||||
get PREFER_AUTHOR_DISPLAY_NAME () { return config.get<boolean>('client.videos.miniature.prefer_author_display_name') },
|
||||
get DISPLAY_AUTHOR_AVATAR () { return config.get<boolean>('client.videos.miniature.display_author_avatar') }
|
||||
},
|
||||
RESUMABLE_UPLOAD: {
|
||||
get MAX_CHUNK_SIZE () { return parseBytes(config.get<number>('client.videos.resumable_upload.max_chunk_size') || 0) }
|
||||
}
|
||||
},
|
||||
MENU: {
|
||||
|
||||
@@ -48,6 +48,9 @@ class ServerConfigManager {
|
||||
miniature: {
|
||||
displayAuthorAvatar: CONFIG.CLIENT.VIDEOS.MINIATURE.DISPLAY_AUTHOR_AVATAR,
|
||||
preferAuthorDisplayName: CONFIG.CLIENT.VIDEOS.MINIATURE.PREFER_AUTHOR_DISPLAY_NAME
|
||||
},
|
||||
resumableUpload: {
|
||||
maxChunkSize: CONFIG.CLIENT.VIDEOS.RESUMABLE_UPLOAD.MAX_CHUNK_SIZE
|
||||
}
|
||||
},
|
||||
menu: {
|
||||
|
||||
Reference in New Issue
Block a user