Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Framasoft
PeerTube
PeerTube
Commits
1f6dd008
Verified
Commit
1f6dd008
authored
Jan 19, 2023
by
Chocobozzz
Browse files
Warn on too big max upload part
parent
f959b518
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/initializers/checker-after-init.ts
View file @
1f6dd008
...
...
@@ -4,7 +4,7 @@ import { getFFmpegVersion } from '@server/helpers/ffmpeg'
import
{
uniqify
}
from
'
@shared/core-utils
'
import
{
VideoRedundancyConfigFilter
}
from
'
@shared/models/redundancy/video-redundancy-config-filter.type
'
import
{
RecentlyAddedStrategy
}
from
'
../../shared/models/redundancy
'
import
{
isProdInstance
,
parseSemVersion
}
from
'
../helpers/core-utils
'
import
{
isProdInstance
,
parseBytes
,
parseSemVersion
}
from
'
../helpers/core-utils
'
import
{
isArray
}
from
'
../helpers/custom-validators/misc
'
import
{
logger
}
from
'
../helpers/logger
'
import
{
ApplicationModel
,
getServerActor
}
from
'
../models/application/application
'
...
...
@@ -284,6 +284,11 @@ function checkObjectStorageConfig () {
'
Object storage bucket prefixes should be set to different values when the same bucket is used for both types of video.
'
)
}
if
(
CONFIG
.
OBJECT_STORAGE
.
MAX_UPLOAD_PART
>
parseBytes
(
'
250MB
'
))
{
// eslint-disable-next-line max-len
logger
.
warn
(
`Object storage max upload part seems to have a big value (
${
CONFIG
.
OBJECT_STORAGE
.
MAX_UPLOAD_PART
}
bytes). Consider using a lower one (like 100MB).`
)
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment