mirror of
https://github.com/Cian-H/am-d-model.eu.git
synced 2025-12-22 13:41:56 +00:00
Another attempt to fux large uploads
This commit is contained in:
@@ -207,6 +207,8 @@ FILES_REST_STORAGE_FACTORY = "invenio_s3.s3fs_storage_factory"
|
||||
FILES_REST_MAX_CONTENT_LENGTH = 5 * 1024**4 # 5 TB total
|
||||
FILES_REST_MULTIPART_CHUNKSIZE_MIN = 5 * 1024**2 # 5 MB (S3 minimum)
|
||||
FILES_REST_MULTIPART_MAX_PARTS = 10000 # Align with S3 limit
|
||||
FILES_REST_MULTIPART_UPLOAD_THRESHOLD = 100 * 1024**2 # 100 MB
|
||||
|
||||
RDM_FILES_DEFAULT_MAX_FILE_SIZE = 5 * 1024**4 # 5 TB
|
||||
RDM_FILES_DEFAULT_QUOTA_SIZE = 10 * 1024**4 # 10 TB
|
||||
FILES_REST_DEFAULT_MAX_FILE_SIZE = 5 * 1024**4 # 5 TB
|
||||
@@ -218,25 +220,11 @@ APP_RDM_DEPOSIT_FORM_QUOTA = {
|
||||
|
||||
# Invenio-S3
|
||||
# ==========
|
||||
S3_ENDPOINT_URL = "http://localhost:9000/"
|
||||
S3_ACCESS_KEY_ID = "CHANGE_ME"
|
||||
S3_SECRET_ACCESS_KEY = "CHANGE_ME"
|
||||
S3_REGION_NAME = "eu-west-1"
|
||||
S3_DIRECT_UPLOAD = True
|
||||
S3_ARGS = {
|
||||
"ACL": "private",
|
||||
"ServerSideEncryption": "AES256",
|
||||
}
|
||||
S3_MULTIPART_UPLOAD_THRESHOLD = 100 * 1024**2 # 100 MB
|
||||
S3_MULTIPART_UPLOAD_PART_SIZE = 525 * 1024**2 # 525 MB
|
||||
S3_MULTIPART_MAX_PARTS = 10000 # S3 limit
|
||||
S3_PRESIGNED_URL_EXPIRATION = 60 * 60 * 6 # 6 hours
|
||||
S3_CLIENT_CONFIG = {
|
||||
"connect_timeout": 120,
|
||||
"read_timeout": 300,
|
||||
"max_pool_connections": 50,
|
||||
"retries": {"max_attempts": 10, "mode": "adaptive"},
|
||||
}
|
||||
S3_DEFAULT_BLOCK_SIZE = 525 * 1024**2 # 525 MB
|
||||
S3_ARGS = {"ACL": "private", "ServerSideEncryption": "AES256"}
|
||||
|
||||
# Invenio-Records-Resources
|
||||
# =========================
|
||||
|
||||
Reference in New Issue
Block a user