mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 02:46:53 +00:00
Added fileserver.upload.max_upload_size_mb setting
This commit is contained in:
parent
fcfc1e8998
commit
dd0ecb712d
@ -10,6 +10,11 @@ delete {
|
||||
allow_batch: true
|
||||
}
|
||||
|
||||
upload {
|
||||
# the max size in Mb of the upload contents in one upload call
|
||||
max_upload_size_mb: 0
|
||||
}
|
||||
|
||||
cors {
|
||||
origins: "*"
|
||||
}
|
||||
|
@ -35,6 +35,9 @@ app.config["UPLOAD_FOLDER"] = first(
|
||||
app.config["SEND_FILE_MAX_AGE_DEFAULT"] = config.get(
|
||||
"fileserver.download.cache_timeout_sec", 5 * 60
|
||||
)
|
||||
if max_upload_size := config.get("fileserver.upload.max_upload_size_mb", None):
|
||||
app.config["MAX_CONTENT_LENGTH"] = max_upload_size * 1024
|
||||
|
||||
auth_handler = AuthHandler.instance()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user