mirror of
https://github.com/clearml/clearml-server
synced 2025-02-07 05:27:23 +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
|
allow_batch: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
upload {
|
||||||
|
# the max size in Mb of the upload contents in one upload call
|
||||||
|
max_upload_size_mb: 0
|
||||||
|
}
|
||||||
|
|
||||||
cors {
|
cors {
|
||||||
origins: "*"
|
origins: "*"
|
||||||
}
|
}
|
||||||
|
@ -35,6 +35,9 @@ app.config["UPLOAD_FOLDER"] = first(
|
|||||||
app.config["SEND_FILE_MAX_AGE_DEFAULT"] = config.get(
|
app.config["SEND_FILE_MAX_AGE_DEFAULT"] = config.get(
|
||||||
"fileserver.download.cache_timeout_sec", 5 * 60
|
"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()
|
auth_handler = AuthHandler.instance()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user