Updated config for large uploads

This commit is contained in:
2025-09-03 15:53:48 +01:00
parent 3b5036a444
commit 8fc0f17e2f
2 changed files with 9 additions and 13 deletions

View File

@@ -26,14 +26,14 @@ invenio.am-d-model.eu {
Referrer-Policy "strict-origin-when-cross-origin" Referrer-Policy "strict-origin-when-cross-origin"
} }
request_body { request_body {
max_size 1TB max_size 5TB
} }
root /static/* /opt/invenio/var/instance/static root /static/* /opt/invenio/var/instance/static
try_files {path} {path}/ /index.html try_files {path} {path}/ /index.html
reverse_proxy invenio-rdm:5000 { reverse_proxy invenio-rdm:5000 {
transport http { transport http {
dial_timeout 10s dial_timeout 20s
response_header_timeout 5m response_header_timeout 10m
} }
} }
file_server file_server

View File

@@ -202,24 +202,20 @@ INSTANCE_THEME_FILE = "./less/theme.less"
# ================== # ==================
DATADIR = "/opt/invenio/var/instance/data" DATADIR = "/opt/invenio/var/instance/data"
FILES_REST_STORAGE_FACTORY = "invenio_s3.s3fs_storage_factory" FILES_REST_STORAGE_FACTORY = "invenio_s3.s3fs_storage_factory"
FILES_REST_MAX_CONTENT_LENGTH = 5 * 1024**4 # 5 TB total FILES_REST_MAX_CONTENT_LENGTH = 5 * 1024**4 # 5 TB
FILES_REST_MULTIPART_CHUNKSIZE_MIN = 5 * 1024**2 # 5 MB (S3 minimum) FILES_REST_MULTIPART_CHUNKSIZE_MIN = 5 * 1024**2 # 5 MB
FILES_REST_MULTIPART_MAX_PARTS = 10000 # Align with S3 limit FILES_REST_MULTIPART_CHUNKSIZE_MAX = 5 * 1024**3 # 5 GB
FILES_REST_MULTIPART_MAX_PARTS = 10000
FILES_REST_MULTIPART_UPLOAD_THRESHOLD = 100 * 1024**2 # 100 MB FILES_REST_MULTIPART_UPLOAD_THRESHOLD = 100 * 1024**2 # 100 MB
FILES_REST_MULTIPART_EXPIRES = 7 * 24 * 60 * 60 # 7 days
RDM_FILES_DEFAULT_MAX_FILE_SIZE = 5 * 1024**4 # 5 TB RDM_FILES_DEFAULT_MAX_FILE_SIZE = 5 * 1024**4 # 5 TB
RDM_FILES_DEFAULT_QUOTA_SIZE = 10 * 1024**4 # 10 TB RDM_FILES_DEFAULT_QUOTA_SIZE = 10 * 1024**4 # 10 TB
FILES_REST_DEFAULT_MAX_FILE_SIZE = 5 * 1024**4 # 5 TB
FILES_REST_DEFAULT_QUOTA_SIZE = 10 * 1024**4 # 10 TB
FILES_REST_MULTIPART_CHUNKSIZE_MIN = 5 * 1024 * 1024 # 5MB minimum chunk size
FILES_REST_MULTIPART_CHUNKSIZE_MAX = 5 * 1024 * 1024 * 1024 # 5GB maximum chunk size
FILES_REST_MULTIPART_MAX_PARTS = 10000 # Maximum number of parts
FILES_REST_MULTIPART_EXPIRES = 7 * 24 * 60 * 60
APP_RDM_DEPOSIT_FORM_QUOTA = { APP_RDM_DEPOSIT_FORM_QUOTA = {
"maxFiles": 500, "maxFiles": 500,
"maxStorage": 10 * 1024**4, # 10 TB "maxStorage": 10 * 1024**4, # 10 TB
} }
# Invenio-S3 # Invenio-S3
# ========== # ==========
S3_ACCESS_KEY_ID = "CHANGE_ME" S3_ACCESS_KEY_ID = "CHANGE_ME"